monkey-front-core 0.0.184 → 0.0.185
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/services/auth/monkeyecx-auth-guard-company.service.mjs +7 -4
- package/fesm2015/monkey-front-core.mjs +6 -3
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +6 -3
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/monkey-front-core-0.0.185.tgz +0 -0
- package/package.json +1 -1
- package/monkey-front-core-0.0.184.tgz +0 -0
|
@@ -3610,9 +3610,12 @@ class MonkeyEcxAuthGuardCompany {
|
|
|
3610
3610
|
}
|
|
3611
3611
|
canActivate() {
|
|
3612
3612
|
const { monkeyecxAuthenticationService } = this;
|
|
3613
|
-
if (monkeyecxAuthenticationService.isAuthorized()
|
|
3614
|
-
monkeyecxAuthenticationService.isCompanyAuthorized()) {
|
|
3615
|
-
|
|
3613
|
+
if (this.monkeyecxAuthenticationService.isAuthorized()) {
|
|
3614
|
+
if (monkeyecxAuthenticationService.isCompanyAuthorized()) {
|
|
3615
|
+
return true;
|
|
3616
|
+
}
|
|
3617
|
+
this.monkeyecxAuthenticationService.redirectApp();
|
|
3618
|
+
return false;
|
|
3616
3619
|
}
|
|
3617
3620
|
monkeyecxAuthenticationService.redirectLoginWelcomeBack();
|
|
3618
3621
|
return false;
|