mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 15:53:27 +00:00
Use organizations$ observable instead of class member (#15377)
This commit is contained in:
@@ -248,10 +248,13 @@ export class MembersComponent extends BaseMembersComponent<OrganizationUserView>
|
||||
const separateCustomRolePermissionsEnabled$ = this.configService.getFeatureFlag$(
|
||||
FeatureFlag.SeparateCustomRolePermissions,
|
||||
);
|
||||
this.showUserManagementControls$ = separateCustomRolePermissionsEnabled$.pipe(
|
||||
this.showUserManagementControls$ = combineLatest([
|
||||
separateCustomRolePermissionsEnabled$,
|
||||
organization$,
|
||||
]).pipe(
|
||||
map(
|
||||
(separateCustomRolePermissionsEnabled) =>
|
||||
!separateCustomRolePermissionsEnabled || this.organization.canManageUsers,
|
||||
([separateCustomRolePermissionsEnabled, organization]) =>
|
||||
!separateCustomRolePermissionsEnabled || organization.canManageUsers,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user