1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-11 22:03:36 +00:00

[PM-7292] Fix viewing/editing unassigned ciphers for admins (#8627)

* [PM-7292] Introduce canEditUnassignedCiphers helper

* [PM-7292] Use new canEditUnassignedCiphers helper

* [PM-7292] Remove duplicate canUseAdminCollections helper
This commit is contained in:
Shane Melton
2024-04-05 08:23:50 -07:00
committed by GitHub
parent 09169cac71
commit cbf48decec
3 changed files with 9 additions and 10 deletions

View File

@@ -662,7 +662,7 @@ export class AddEditComponent implements OnInit, OnDestroy {
// if a cipher is unassigned we want to check if they are an admin or have permission to edit any collection
if (!cipher.collectionIds) {
orgAdmin = this.organization?.canEditAllCiphers(this.flexibleCollectionsV1Enabled);
orgAdmin = this.organization?.canEditUnassignedCiphers();
}
return this.cipher.id == null