From 815b436f7ce9f8825575f288b1ae98c1dc54f1d2 Mon Sep 17 00:00:00 2001 From: Matt Gibson Date: Wed, 20 Oct 2021 10:31:25 -0500 Subject: [PATCH] Fix Typo. Collection create has full view access (#523) --- common/src/models/domain/organization.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/models/domain/organization.ts b/common/src/models/domain/organization.ts index 6ac99d0972..2363348221 100644 --- a/common/src/models/domain/organization.ts +++ b/common/src/models/domain/organization.ts @@ -115,11 +115,11 @@ export class Organization { } get canViewAllCollections() { - return this.canEditAnyCollection || this.canDeleteAnyCollection; + return this.canCreateNewCollections || this.canEditAnyCollection || this.canDeleteAnyCollection; } get canEditAssignedCollections() { - return this.isManager || (this.permissions.deleteAssignedCollections ?? this.permissions.manageAssignedCollections); + return this.isManager || (this.permissions.editAssignedCollections ?? this.permissions.manageAssignedCollections); } get canDeleteAssignedCollections() {