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.
@@ -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));