ACA-4615 view profile functionality should also be visible for SSO users (#2694)

This commit is contained in:
Shubham Bansal
2022-10-06 11:16:25 +00:00
committed by GitHub
parent 753e5bc6c8
commit 08d4f46573

View File

@@ -18,7 +18,7 @@ export class ViewProfileRuleGuard implements CanActivate {
constructor(private authService: AuthenticationService) {}
canActivate(_: ActivatedRouteSnapshot): Observable<boolean> | Promise<boolean> | boolean {
return this.isEcmLoggedIn() && !this.authService.isOauth();
return this.isEcmLoggedIn() || this.authService.isOauth();
}
private isEcmLoggedIn() {