1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-20 10:13:31 +00:00

set collections for org admin

This commit is contained in:
Kyle Spearrin
2018-10-22 14:48:17 -04:00
parent 5e7c9a7278
commit 69f0339bd5
3 changed files with 11 additions and 1 deletions

View File

@@ -48,6 +48,13 @@ export class AddEditComponent extends BaseAddEditComponent {
await this.organizationChanged();
}
protected loadCollections() {
if (!this.organization.isAdmin) {
return super.loadCollections();
}
return Promise.resolve(this.collections);
}
protected async loadCipher() {
if (!this.organization.isAdmin) {
return await super.loadCipher();