ps-toolkit-ui 1.3.53 → 1.3.54

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.
@@ -7201,9 +7201,17 @@
7201
7201
  if (v === void 0) { v = null; }
7202
7202
  return app.getL("" + c + (a ? "." + a : ''), key, v);
7203
7203
  };
7204
- this.permissions = this.getPermission(this.c, this.a);
7205
- if (this.permissions) {
7206
- this.permissions.Area = app.area;
7204
+ if (app.currentData.user !== null) {
7205
+ this.permissions = this.getPermission(this.c, this.a);
7206
+ if (this.permissions) {
7207
+ this.permissions.Area = app.area;
7208
+ }
7209
+ }
7210
+ else {
7211
+ this.permissions = this.getPermission(this.c, this.a);
7212
+ if (this.permissions) {
7213
+ this.permissions.Area = app.area;
7214
+ }
7207
7215
  }
7208
7216
  }
7209
7217
  BaseComponent.prototype.getPermission = function (c, a) {