From 98d18fb0979a4c2ccd4944b6486910b6159f0b2d Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Fri, 27 Jul 2018 22:39:51 -0400 Subject: [PATCH] only show add button if admin --- src/app/organizations/vault/vault.component.html | 2 +- src/app/organizations/vault/vault.component.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/organizations/vault/vault.component.html b/src/app/organizations/vault/vault.component.html index ecc138fbf44..83a5f952910 100644 --- a/src/app/organizations/vault/vault.component.html +++ b/src/app/organizations/vault/vault.component.html @@ -13,7 +13,7 @@ - diff --git a/src/app/organizations/vault/vault.component.ts b/src/app/organizations/vault/vault.component.ts index dac4e895b3f..de6eebb321e 100644 --- a/src/app/organizations/vault/vault.component.ts +++ b/src/app/organizations/vault/vault.component.ts @@ -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;