Skip to content

Commit

Permalink
[PM-18192] Add null check for organization
Browse files Browse the repository at this point in the history
  • Loading branch information
shane-melton committed Feb 12, 2025
1 parent 2284fe3 commit f972c81
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit f972c81

Please sign in to comment.