monkey-front-core 0.0.57 → 0.0.61
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/esm2020/lib/core/directives/monkeyecx-security-directive.mjs +3 -3
- package/fesm2015/monkey-front-core.mjs +2 -2
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +2 -2
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/lib/core/directives/monkeyecx-security-directive.d.ts +1 -1
- package/monkey-front-core-0.0.61.tgz +0 -0
- package/package.json +1 -1
- package/monkey-front-core-0.0.57.tgz +0 -0
|
@@ -2776,7 +2776,7 @@ class MonkeyEcxSecurityDirective {
|
|
|
2776
2776
|
this.elementRef = elementRef;
|
|
2777
2777
|
this.tokenStorageService = tokenStorageService;
|
|
2778
2778
|
this.cdr = cdr;
|
|
2779
|
-
this.roles =
|
|
2779
|
+
this.roles = [];
|
|
2780
2780
|
this.byExclusion = false;
|
|
2781
2781
|
this.tokenCredentials = null;
|
|
2782
2782
|
// not to do
|
|
@@ -2793,7 +2793,7 @@ class MonkeyEcxSecurityDirective {
|
|
|
2793
2793
|
handleAccess() {
|
|
2794
2794
|
const { roles, byExclusion } = this;
|
|
2795
2795
|
let display = 'none';
|
|
2796
|
-
const found = roles?.indexOf(this.getRole())
|
|
2796
|
+
const found = roles?.indexOf(this.getRole());
|
|
2797
2797
|
if (byExclusion) {
|
|
2798
2798
|
display = 'block';
|
|
2799
2799
|
if (found > -1) {
|