Add login button to header
This commit is contained in:
@@ -112,4 +112,8 @@ export class AuthService {
|
||||
const claims = this.userClaimsSubject.getValue();
|
||||
return claims?.authorizations || [];
|
||||
}
|
||||
|
||||
public hasAccess(authorization: string[]): boolean {
|
||||
return this.getUserAuthorizations().filter(entry => authorization.includes(entry)).length > 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user