monkey-front-core 0.0.55 → 0.0.59
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 +6 -2
- package/esm2020/lib/core/interfaces/monkeyecx-auth-credentials.mjs +1 -1
- package/esm2020/lib/core/services/storage/monkeyecx-token-storage.service.mjs +3 -2
- package/fesm2015/monkey-front-core.mjs +7 -2
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +7 -2
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/lib/core/directives/monkeyecx-security-directive.d.ts +1 -1
- package/lib/core/interfaces/monkeyecx-auth-credentials.d.ts +1 -0
- package/monkey-front-core-0.0.59.tgz +0 -0
- package/package.json +1 -1
- package/monkey-front-core-0.0.55.tgz +0 -0
|
@@ -2665,9 +2665,10 @@ class MonkeyEcxTokenStorageService {
|
|
|
2665
2665
|
companyType: '',
|
|
2666
2666
|
programAdmin: false,
|
|
2667
2667
|
programType: '',
|
|
2668
|
+
accessType: '',
|
|
2668
2669
|
role: '',
|
|
2669
2670
|
_clearIgnore: {
|
|
2670
|
-
ignore: ['username', 'program'],
|
|
2671
|
+
ignore: ['username', 'program', 'accessType'],
|
|
2671
2672
|
},
|
|
2672
2673
|
};
|
|
2673
2674
|
this.token$ = new BehaviorSubject(null);
|
|
@@ -2775,7 +2776,7 @@ class MonkeyEcxSecurityDirective {
|
|
|
2775
2776
|
this.elementRef = elementRef;
|
|
2776
2777
|
this.tokenStorageService = tokenStorageService;
|
|
2777
2778
|
this.cdr = cdr;
|
|
2778
|
-
this.roles =
|
|
2779
|
+
this.roles = [];
|
|
2779
2780
|
this.byExclusion = false;
|
|
2780
2781
|
this.tokenCredentials = null;
|
|
2781
2782
|
// not to do
|
|
@@ -2792,7 +2793,11 @@ class MonkeyEcxSecurityDirective {
|
|
|
2792
2793
|
handleAccess() {
|
|
2793
2794
|
const { roles, byExclusion } = this;
|
|
2794
2795
|
let display = 'none';
|
|
2796
|
+
console.log('roles');
|
|
2797
|
+
console.log(roles);
|
|
2795
2798
|
const found = roles?.indexOf(this.getRole()) || -1;
|
|
2799
|
+
console.log('found');
|
|
2800
|
+
console.log(found);
|
|
2796
2801
|
if (byExclusion) {
|
|
2797
2802
|
display = 'block';
|
|
2798
2803
|
if (found > -1) {
|