Browse Source

Fix permissions in header component

pull/88/head
Thomas 4 years ago
parent
commit
d1a2c9ffb1
  1. 4
      apps/client/src/app/components/header/header.component.ts

4
apps/client/src/app/components/header/header.component.ts

@ -49,7 +49,6 @@ export class HeaderComponent implements OnChanges {
} }
public ngOnChanges() { public ngOnChanges() {
if (this.user) {
this.hasPermissionForSocialLogin = hasPermission( this.hasPermissionForSocialLogin = hasPermission(
this.info?.globalPermissions, this.info?.globalPermissions,
permissions.enableSocialLogin permissions.enableSocialLogin
@ -61,11 +60,10 @@ export class HeaderComponent implements OnChanges {
); );
this.hasPermissionToAccessAdminControl = hasPermission( this.hasPermissionToAccessAdminControl = hasPermission(
this.user.permissions, this.user?.permissions,
permissions.accessAdminControl permissions.accessAdminControl
); );
} }
}
public impersonateAccount(aId: string) { public impersonateAccount(aId: string) {
if (aId) { if (aId) {

Loading…
Cancel
Save