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

[AC-2086] Update CanDelete with v1 flag logic (#9100)

* feat: update org domain object deleteAnyCollection with v1 flag logic, refs AC-2086

* feat: update canDelete method to handle v1 flag logic, refs AC-2086

* feat: update canDelete references to pass v1 flag, refs AC-2086

* feat: add provider check and modify owner/admin type checks, refs AC-2086

* fix: add permission to org instantiation for vault item stories, refs AC-2086
This commit is contained in:
Vincent Salucci
2024-05-13 16:13:27 -05:00
committed by GitHub
parent 66f5d90803
commit 3900924250
11 changed files with 42 additions and 21 deletions

View File

@@ -207,7 +207,7 @@ export class VaultHeaderComponent implements OnInit {
}
// Otherwise, check if we can delete the specified collection
return this.collection.node.canDelete(this.organization);
return this.collection.node.canDelete(this.organization, this.flexibleCollectionsV1Enabled);
}
get canViewCollectionInfo(): boolean {