From 28c67068d37fc4fb45ba4d98341e0abbee2fe7e0 Mon Sep 17 00:00:00 2001 From: Shane Melton Date: Wed, 12 Feb 2025 10:45:45 -0800 Subject: [PATCH] [PM-18192] Add null check for organization (#13379) (cherry picked from commit 97e61c970cf52c516cf958f1ff5f8bf21927864a) --- .../components/item-details/item-details-section.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/vault/src/cipher-form/components/item-details/item-details-section.component.ts b/libs/vault/src/cipher-form/components/item-details/item-details-section.component.ts index 85cd85bbf03..50bafd48b41 100644 --- a/libs/vault/src/cipher-form/components/item-details/item-details-section.component.ts +++ b/libs/vault/src/cipher-form/components/item-details/item-details-section.component.ts @@ -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();