1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-06 00:13:28 +00:00

[PM-18192] Add null check for organization (#13379)

This commit is contained in:
Shane Melton
2025-02-12 10:45:45 -08:00
committed by GitHub
parent c1fbaf6acf
commit 97e61c970c

View File

@@ -275,9 +275,9 @@ export class ItemDetailsSectionComponent implements OnInit {
// Disable Collections Options if Owner/Admin does not have Edit/Manage permissions on item
// Disable Collections Options if Custom user does not have Edit/Manage permissions on item
if (
(organization.allowAdminAccessToAllCollectionItems &&
(organization?.allowAdminAccessToAllCollectionItems &&
(!this.originalCipherView.viewPassword || !this.originalCipherView.edit)) ||
(organization.type === OrganizationUserType.Custom &&
(organization?.type === OrganizationUserType.Custom &&
!this.originalCipherView.viewPassword)
) {
this.itemDetailsForm.controls.collectionIds.disable();