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:
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user