ps-toolkit-ui 0.0.33 → 0.0.34
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.
- package/bundles/ps-toolkit-ui.umd.js +1 -0
- package/bundles/ps-toolkit-ui.umd.js.map +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js.map +1 -1
- package/esm2015/lib/components/base.component.js +2 -2
- package/fesm2015/ps-toolkit-ui.js +1 -1
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/lib/components/base.component.d.ts +1 -1
- package/package.json +1 -1
|
@@ -6893,6 +6893,7 @@
|
|
|
6893
6893
|
}
|
|
6894
6894
|
}
|
|
6895
6895
|
BaseComponent.prototype.getPermission = function (c, a) {
|
|
6896
|
+
if (a === void 0) { a = null; }
|
|
6896
6897
|
var p = this.app.currentUser.Permissions.filter(function (per) { return per.Controller === c && (a == null || per.Action === a) &&
|
|
6897
6898
|
per.Type === exports.PermissionTypeEnum.Item; });
|
|
6898
6899
|
return p.length > 0 ? this.getPermissionClass(p[0]) : null;
|