mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 06:13:38 +00:00
Add organization.flexibleCollections to models (#7442)
This commit is contained in:
@@ -72,6 +72,11 @@ export class Organization {
|
||||
* Refers to the ability for an owner/admin to access all collection items, regardless of assigned collections
|
||||
*/
|
||||
allowAdminAccessToAllCollectionItems: boolean;
|
||||
/**
|
||||
* Returns true if this organization has enabled Flexible Collections (MVP) and their data has been migrated.
|
||||
* Generally, you should use this as the feature flag to gate Flexible Collections features.
|
||||
*/
|
||||
flexibleCollections: boolean;
|
||||
|
||||
constructor(obj?: OrganizationData) {
|
||||
if (obj == null) {
|
||||
@@ -125,6 +130,7 @@ export class Organization {
|
||||
this.accessSecretsManager = obj.accessSecretsManager;
|
||||
this.limitCollectionCreationDeletion = obj.limitCollectionCreationDeletion;
|
||||
this.allowAdminAccessToAllCollectionItems = obj.allowAdminAccessToAllCollectionItems;
|
||||
this.flexibleCollections = obj.flexibleCollections;
|
||||
}
|
||||
|
||||
get canAccess() {
|
||||
|
||||
Reference in New Issue
Block a user