ps-toolkit-ui 0.0.24 → 0.0.25

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.
@@ -6885,10 +6885,17 @@
6885
6885
  return p.length > 0 ? this.getPermissionClass(p[0]) : null;
6886
6886
  };
6887
6887
  BaseComponent.prototype.getPermissionClass = function (p) {
6888
+ console.log('$$$$$$$$$$');
6889
+ console.log(p);
6890
+ console.log('$$$$$$$$$$');
6888
6891
  return new PermissionClass(p.Name, p.Icon, p.Type, p.Area, p.Controller, p.Action, [], this.getPermissionAccessesClass(p.Id));
6889
6892
  };
6890
6893
  BaseComponent.prototype.getPermissionAccessesClass = function (parentId) {
6891
6894
  var _this = this;
6895
+ console.log('--------------');
6896
+ console.log(parentId);
6897
+ console.log(this.app.currentUser.Permissions.filter(function (x) { return x.ParentId = parentId; }));
6898
+ console.log('--------------');
6892
6899
  return this.app.currentUser.Permissions.filter(function (x) { return x.ParentId = parentId; }).map(function (x) { return _this.getPermissionClass(x); });
6893
6900
  };
6894
6901
  BaseComponent.prototype.hasAccess = function (a) {