diff --git a/app/src/app/components/view-profile/view-profile.guard.ts b/app/src/app/components/view-profile/view-profile.guard.ts index adb6be2ef..fdfa31fbb 100644 --- a/app/src/app/components/view-profile/view-profile.guard.ts +++ b/app/src/app/components/view-profile/view-profile.guard.ts @@ -18,7 +18,7 @@ export class ViewProfileRuleGuard implements CanActivate { constructor(private authService: AuthenticationService) {} canActivate(_: ActivatedRouteSnapshot): Observable | Promise | boolean { - return this.isEcmLoggedIn() && !this.authService.isOauth(); + return this.isEcmLoggedIn() || this.authService.isOauth(); } private isEcmLoggedIn() {