|
@ -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) { |
|
|