monkey-front-core 0.0.328 → 0.0.330
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 +4 -3
- package/fesm2015/monkey-front-core.mjs +3 -2
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +3 -2
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/monkey-front-core-0.0.330.tgz +0 -0
- package/package.json +1 -1
- package/monkey-front-core-0.0.328.tgz +0 -0
|
@@ -3822,13 +3822,14 @@ class MonkeyEcxSecurityDirective {
|
|
|
3822
3822
|
if (tokenCredentials?.programAdmin === 'true') {
|
|
3823
3823
|
return 'PROGRAM_ADMIN';
|
|
3824
3824
|
}
|
|
3825
|
+
if (tokenCredentials?.programAdmin === true) {
|
|
3826
|
+
return 'PROGRAM_ADMIN';
|
|
3827
|
+
}
|
|
3825
3828
|
return tokenCredentials?.role || '';
|
|
3826
3829
|
}
|
|
3827
3830
|
handleAccess() {
|
|
3828
3831
|
const { roles, byExclusion } = this;
|
|
3829
3832
|
let display = 'none';
|
|
3830
|
-
console.log('this.tokenCredentials');
|
|
3831
|
-
console.log(this.tokenCredentials);
|
|
3832
3833
|
const found = roles?.indexOf(this.getRole());
|
|
3833
3834
|
if (byExclusion) {
|
|
3834
3835
|
display = 'block';
|