1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-08 03:23:50 +00:00

only show add button if admin

This commit is contained in:
Kyle Spearrin
2018-07-27 22:39:51 -04:00
parent dc69887628
commit 98d18fb097
2 changed files with 3 additions and 1 deletions

View File

@@ -45,6 +45,7 @@ export class VaultComponent implements OnInit {
organization: Organization;
collectionId: string;
type: CipherType;
showAdd = true;
private modal: ModalComponent = null;
@@ -56,6 +57,7 @@ export class VaultComponent implements OnInit {
ngOnInit() {
this.route.parent.params.subscribe(async (params) => {
this.organization = await this.userService.getOrganization(params.organizationId);
this.showAdd = this.organization.isAdmin;
this.groupingsComponent.organization = this.organization;
this.ciphersComponent.organization = this.organization;