diff --git a/libs/common/src/admin-console/models/domain/organization.ts b/libs/common/src/admin-console/models/domain/organization.ts index 802fe6fcf8c..25dd35cf2b9 100644 --- a/libs/common/src/admin-console/models/domain/organization.ts +++ b/libs/common/src/admin-console/models/domain/organization.ts @@ -184,14 +184,29 @@ export class Organization { return this.canEditAnyCollection || this.canDeleteAnyCollection; } + /** + * @deprecated + * This is deprecated with the introduction of Flexible Collections. + * This will always return false if FlexibleCollections flag is on. + */ get canEditAssignedCollections() { return this.isManager || this.permissions.editAssignedCollections; } + /** + * @deprecated + * This is deprecated with the introduction of Flexible Collections. + * This will always return false if FlexibleCollections flag is on. + */ get canDeleteAssignedCollections() { return this.isManager || this.permissions.deleteAssignedCollections; } + /** + * @deprecated + * This is deprecated with the introduction of Flexible Collections. + * This will always return false if FlexibleCollections flag is on. + */ get canViewAssignedCollections() { return this.canDeleteAssignedCollections || this.canEditAssignedCollections; }