1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 00:33:44 +00:00

[AC-1110] allow members with Delete Any Collection to delete collections (#4925)

* [AC-1110] add anyCollection permission to delete collection

* [AC-1110] add missing permission to header collection delete
This commit is contained in:
Jake Fink
2023-03-10 12:53:41 -05:00
committed by GitHub
parent 7892834f97
commit e480f7cfbc
3 changed files with 13 additions and 3 deletions

View File

@@ -209,7 +209,10 @@ export class VaultHeaderComponent {
}
async deleteCollection(collection: CollectionView): Promise<void> {
if (!this.organization.canDeleteAssignedCollections) {
if (
!this.organization.canDeleteAnyCollection &&
!this.organization.canDeleteAssignedCollections
) {
this.platformUtilsService.showToast(
"error",
this.i18nService.t("errorOccurred"),