ps-toolkit-ui 0.0.23 → 0.0.24
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 +1 -1
- 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 +2 -2
- package/fesm2015/ps-toolkit-ui.js +1 -1
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/package.json +1 -1
|
@@ -6882,7 +6882,7 @@
|
|
|
6882
6882
|
var _this = this;
|
|
6883
6883
|
var p = this.app.currentUser.Permissions.filter(function (per) { return per.Controller === _this.c && (_this.a == null || per.Action === _this.a) &&
|
|
6884
6884
|
per.Type === exports.PermissionTypeEnum.Item; });
|
|
6885
|
-
return p.length > 0 ? this.getPermissionClass(p) : null;
|
|
6885
|
+
return p.length > 0 ? this.getPermissionClass(p[0]) : null;
|
|
6886
6886
|
};
|
|
6887
6887
|
BaseComponent.prototype.getPermissionClass = function (p) {
|
|
6888
6888
|
return new PermissionClass(p.Name, p.Icon, p.Type, p.Area, p.Controller, p.Action, [], this.getPermissionAccessesClass(p.Id));
|