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.
@@ -3610,9 +3610,12 @@ class MonkeyEcxAuthGuardCompany {
3610
3610
  }
3611
3611
  canActivate() {
3612
3612
  const { monkeyecxAuthenticationService } = this;
3613
- if (monkeyecxAuthenticationService.isAuthorized() &&
3614
- monkeyecxAuthenticationService.isCompanyAuthorized()) {
3615
- return true;
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;