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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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