ps-toolkit-ui 0.0.40 → 0.0.41

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.
@@ -5086,6 +5086,9 @@
5086
5086
  PermissionClass.prototype.getOptions = function () {
5087
5087
  return this.Accesses.filter(function (x) { return x.Type !== exports.PermissionTypeEnum.Access; });
5088
5088
  };
5089
+ PermissionClass.prototype.getOption = function (a) {
5090
+ return this.Accesses.filter(function (x) { return x.Action === a && x.Type !== exports.PermissionTypeEnum.Access; });
5091
+ };
5089
5092
  PermissionClass.prototype.getUrl = function () {
5090
5093
  return (this.Area ? '/' + this.Area : '') + '/' + this.Controller + '/' +
5091
5094
  (this.RelatedId ? this.RelatedId + "/" : '') +