mirror of
https://github.com/bitwarden/browser
synced 2025-12-19 01:33:33 +00:00
[AC-2703] Fix copy in members and groups modals for custom users (#9408)
* Fix copy in members and groups modals for custom users * Fix nesting in member dialog template
This commit is contained in:
@@ -196,12 +196,17 @@ export class GroupAddEditComponent implements OnInit, OnDestroy {
|
||||
}),
|
||||
);
|
||||
|
||||
protected canEditAnyCollection$ = combineLatest([
|
||||
protected canAssignAccessToAnyCollection$ = combineLatest([
|
||||
this.organization$,
|
||||
this.flexibleCollectionsV1Enabled$,
|
||||
this.allowAdminAccessToAllCollectionItems$,
|
||||
]).pipe(
|
||||
map(([org, flexibleCollectionsV1Enabled]) =>
|
||||
org.canEditAnyCollection(flexibleCollectionsV1Enabled),
|
||||
map(
|
||||
([org, flexibleCollectionsV1Enabled, allowAdminAccessToAllCollectionItems]) =>
|
||||
org.canEditAnyCollection(flexibleCollectionsV1Enabled) ||
|
||||
// Manage Groups custom permission cannot edit any collection but they can assign access from this dialog
|
||||
// if permitted by collection management settings
|
||||
(org.permissions.manageGroups && allowAdminAccessToAllCollectionItems),
|
||||
),
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user