,
@@ -217,6 +230,7 @@ export class VaultItemDialogComponent implements OnInit, OnDestroy {
private router: Router,
private billingAccountProfileStateService: BillingAccountProfileStateService,
private premiumUpgradeService: PremiumUpgradePromptService,
+ private cipherAuthorizationService: CipherAuthorizationService,
) {
this.updateTitle();
}
@@ -231,6 +245,12 @@ export class VaultItemDialogComponent implements OnInit, OnDestroy {
this.organization = this.formConfig.organizations.find(
(o) => o.id === this.cipher.organizationId,
);
+
+ this.canDeleteCipher$ = this.cipherAuthorizationService.canDeleteCipher$(
+ this.cipher,
+ [this.params.activeCollectionId],
+ this.params.isAdminConsoleAction,
+ );
}
this.performingInitialLoad = false;
diff --git a/apps/web/src/app/vault/components/vault-items/vault-cipher-row.component.html b/apps/web/src/app/vault/components/vault-items/vault-cipher-row.component.html
index 2f38d7c70db..5c4de576ead 100644
--- a/apps/web/src/app/vault/components/vault-items/vault-cipher-row.component.html
+++ b/apps/web/src/app/vault/components/vault-items/vault-cipher-row.component.html
@@ -69,7 +69,11 @@
>
|
- |
+
+
+ {{ permissionText }}
+
+ |
- |