ps-toolkit-ui 1.3.45 → 1.3.46

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.
@@ -7188,17 +7188,18 @@
7188
7188
  if (v === void 0) { v = null; }
7189
7189
  return app.getL("" + c + (a ? "." + a : ''), key, v);
7190
7190
  };
7191
- if (app.currentData.user !== null) {
7192
- this.permissions = this.getPermission(this.c, this.a);
7193
- if (this.permissions) {
7194
- this.permissions.Area = app.area;
7195
- }
7191
+ this.permissions = this.getPermission(this.c, this.a);
7192
+ console.log(this.permissions, 'this.permissions');
7193
+ if (this.permissions) {
7194
+ this.permissions.Area = app.area;
7195
+ console.log(this.permissions.Area, 'this.permissions.Area');
7196
7196
  }
7197
7197
  }
7198
7198
  BaseComponent.prototype.getPermission = function (c, a) {
7199
7199
  if (a === void 0) { a = null; }
7200
7200
  var p = this.app.currentData.permissions.filter(function (per) { return per.Controller === c && (a == null || per.Action === a) &&
7201
7201
  per.Type === exports.PermissionTypeEnum.Item; });
7202
+ console.log(p, 'pppppp');
7202
7203
  return p.length > 0 ? this.getPermissionClass(p[0]) : null;
7203
7204
  };
7204
7205
  BaseComponent.prototype.getPermissionClass = function (p) {