ps-toolkit-ui 0.0.26 → 0.0.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/ps-toolkit-ui.umd.js +2 -2
- package/bundles/ps-toolkit-ui.umd.js.map +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js.map +1 -1
- package/esm2015/lib/components/base.component.js +3 -3
- package/fesm2015/ps-toolkit-ui.js +2 -2
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/package.json +1 -1
|
@@ -6895,9 +6895,9 @@
|
|
|
6895
6895
|
var _this = this;
|
|
6896
6896
|
console.log('--------------');
|
|
6897
6897
|
console.log(parentId);
|
|
6898
|
-
console.log(this.app.currentUser.Permissions.filter(function (x) { return x.ParentId
|
|
6898
|
+
console.log(this.app.currentUser.Permissions.filter(function (x) { return x.ParentId === parentId; }));
|
|
6899
6899
|
console.log('--------------');
|
|
6900
|
-
return this.app.currentUser.Permissions.filter(function (x) { return x.ParentId
|
|
6900
|
+
return this.app.currentUser.Permissions.filter(function (x) { return x.ParentId === parentId; }).map(function (x) { return _this.getPermissionClass(x); });
|
|
6901
6901
|
};
|
|
6902
6902
|
BaseComponent.prototype.hasAccess = function (a) {
|
|
6903
6903
|
return this.permissions ? this.permissions.hasAccess(a) : false;
|