We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd48f54 commit 2a6f1e3Copy full SHA for 2a6f1e3
1 file changed
src/app/directives/has-permission/has-permission.directive.ts
@@ -38,7 +38,7 @@ export class HasPermissionDirective {
38
*/
39
constructor() {
40
const savedCredentials = this.authenticationService.getCredentials();
41
- this.userPermissions = savedCredentials.permissions;
+ this.userPermissions = savedCredentials?.permissions ?? [];
42
}
43
44
/**
0 commit comments