mirror of
https://github.com/bitwarden/web
synced 2025-12-20 10:13:15 +00:00
set collections for org admin
This commit is contained in:
@@ -238,6 +238,9 @@ export class VaultComponent implements OnInit, OnDestroy {
|
||||
this.modal = this.cipherAddEditModalRef.createComponent(factory).instance;
|
||||
const childComponent = this.modal.show<AddEditComponent>(AddEditComponent, this.cipherAddEditModalRef);
|
||||
|
||||
if (this.organization.isAdmin) {
|
||||
childComponent.collections = this.groupingsComponent.collections.filter((c) => !c.readOnly);
|
||||
}
|
||||
childComponent.organization = this.organization;
|
||||
childComponent.cipherId = cipher == null ? null : cipher.id;
|
||||
childComponent.onSavedCipher.subscribe(async (c: CipherView) => {
|
||||
|
||||
Reference in New Issue
Block a user