1
0
mirror of https://github.com/bitwarden/browser.git synced 2025-02-15 01:11:47 +01: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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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();