ps-toolkit-ui 0.0.32 → 0.0.33

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.
@@ -6886,17 +6886,14 @@
6886
6886
  return app.getL("" + c + (a ? "." + a : ''), key, v);
6887
6887
  };
6888
6888
  if (app.currentUser !== null) {
6889
- this.permissions = this.getPermission();
6890
- console.log(this.permissions);
6889
+ this.permissions = this.getPermission(this.c, this.a);
6891
6890
  if (this.permissions) {
6892
6891
  this.permissions.Area = app.area;
6893
6892
  }
6894
6893
  }
6895
6894
  }
6896
- BaseComponent.prototype.getPermission = function () {
6897
- var _this = this;
6898
- console.log('getPermissiongetPermissiongetPermissiongetPermission');
6899
- var p = this.app.currentUser.Permissions.filter(function (per) { return per.Controller === _this.c && (_this.a == null || per.Action === _this.a) &&
6895
+ BaseComponent.prototype.getPermission = function (c, a) {
6896
+ var p = this.app.currentUser.Permissions.filter(function (per) { return per.Controller === c && (a == null || per.Action === a) &&
6900
6897
  per.Type === exports.PermissionTypeEnum.Item; });
6901
6898
  return p.length > 0 ? this.getPermissionClass(p[0]) : null;
6902
6899
  };