monkey-front-core 0.0.357 → 0.0.358
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/interceptors/monkeyecx-http-config-error.interceptor.mjs +1 -1
- package/esm2020/lib/core/services/auth/monkeyecx-auth-guard-role.service.mjs +1 -8
- package/fesm2015/monkey-front-core.mjs +0 -7
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +0 -7
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/monkey-front-core-0.0.358.tgz +0 -0
- package/package.json +1 -1
- package/monkey-front-core-0.0.357.tgz +0 -0
|
@@ -4170,22 +4170,15 @@ class MonkeyEcxAuthGuardByRole {
|
|
|
4170
4170
|
}
|
|
4171
4171
|
async canActivate(route, state) {
|
|
4172
4172
|
this.securityCredentials = route.data?.securityCredentials;
|
|
4173
|
-
console.log('this.securityCredentials');
|
|
4174
|
-
console.log(this.securityCredentials);
|
|
4175
4173
|
if (this.securityCredentials) {
|
|
4176
4174
|
const { roles, byExclusion } = this.securityCredentials;
|
|
4177
4175
|
if (!this.tokenCredentials) {
|
|
4178
4176
|
this.tokenCredentials = await this.tokenStorage.getToken();
|
|
4179
4177
|
}
|
|
4180
|
-
console.log('this.tokenCredentials');
|
|
4181
|
-
console.log(this.tokenCredentials);
|
|
4182
|
-
console.log('checando');
|
|
4183
4178
|
if (!this.allowedSecurityAccess(roles, byExclusion)) {
|
|
4184
|
-
console.log('checou erro');
|
|
4185
4179
|
this.navigateToErrorPage();
|
|
4186
4180
|
return false;
|
|
4187
4181
|
}
|
|
4188
|
-
console.log('checou ok');
|
|
4189
4182
|
}
|
|
4190
4183
|
return true;
|
|
4191
4184
|
}
|