From d0516f24e8b56b24c16175721731405ad59f426e Mon Sep 17 00:00:00 2001 From: Jason Ng Date: Tue, 17 Sep 2024 14:28:39 -0400 Subject: [PATCH] [AC-2627] Empty Collection New Item Btn Permissions (#11089) * only show new item btn in empty collection for can edit perm --- apps/web/src/app/vault/org-vault/vault.component.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/web/src/app/vault/org-vault/vault.component.html b/apps/web/src/app/vault/org-vault/vault.component.html index ed7f6b1e3ed..220d6ef490f 100644 --- a/apps/web/src/app/vault/org-vault/vault.component.html +++ b/apps/web/src/app/vault/org-vault/vault.component.html @@ -81,7 +81,11 @@ (click)="addCipher()" buttonType="primary" type="button" - *ngIf="filter.type !== 'trash' && filter.collectionId !== Unassigned" + *ngIf=" + filter.type !== 'trash' && + filter.collectionId !== Unassigned && + selectedCollection?.node?.canEditItems(organization) + " > {{ "newItem" | i18n }}