Add login button to header
This commit is contained in:
1 parent
ebe66c87c0
commit
73916f0aae
5 files changed
+85
-7
No files matched your search
@@ -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