1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-22 03:03:43 +00:00

Rename LimitCollectionCdOwnerAdmin -> LimitCollectionCreationDeletion (#6409)

This commit is contained in:
Thomas Rittson
2023-09-27 07:37:39 +10:00
committed by GitHub
parent f4ba92b63c
commit a64ae699ce
7 changed files with 18 additions and 14 deletions

View File

@@ -49,7 +49,7 @@ export class OrganizationData {
familySponsorshipValidUntil?: Date;
familySponsorshipToDelete?: boolean;
accessSecretsManager: boolean;
limitCollectionCdOwnerAdmin: boolean;
limitCollectionCreationDeletion: boolean;
constructor(
response: ProfileOrganizationResponse,
@@ -101,7 +101,7 @@ export class OrganizationData {
this.familySponsorshipValidUntil = response.familySponsorshipValidUntil;
this.familySponsorshipToDelete = response.familySponsorshipToDelete;
this.accessSecretsManager = response.accessSecretsManager;
this.limitCollectionCdOwnerAdmin = response.limitCollectionCdOwnerAdmin;
this.limitCollectionCreationDeletion = response.limitCollectionCreationDeletion;
this.isMember = options.isMember;
this.isProviderUser = options.isProviderUser;

View File

@@ -67,7 +67,7 @@ export class Organization {
/**
* Refers to the ability for an organization to limit collection creation and deletion to owners and admins only
*/
limitCollectionCdOwnerAdmin: boolean;
limitCollectionCreationDeletion: boolean;
constructor(obj?: OrganizationData) {
if (obj == null) {
@@ -119,7 +119,7 @@ export class Organization {
this.familySponsorshipValidUntil = obj.familySponsorshipValidUntil;
this.familySponsorshipToDelete = obj.familySponsorshipToDelete;
this.accessSecretsManager = obj.accessSecretsManager;
this.limitCollectionCdOwnerAdmin = obj.limitCollectionCdOwnerAdmin;
this.limitCollectionCreationDeletion = obj.limitCollectionCreationDeletion;
}
get canAccess() {

View File

@@ -33,7 +33,7 @@ export class OrganizationResponse extends BaseResponse {
smServiceAccounts?: number;
maxAutoscaleSmSeats?: number;
maxAutoscaleSmServiceAccounts?: number;
limitCollectionCdOwnerAdmin: boolean;
limitCollectionCreationDeletion: boolean;
constructor(response: any) {
super(response);
@@ -73,6 +73,8 @@ export class OrganizationResponse extends BaseResponse {
this.smServiceAccounts = this.getResponseProperty("SmServiceAccounts");
this.maxAutoscaleSmSeats = this.getResponseProperty("MaxAutoscaleSmSeats");
this.maxAutoscaleSmServiceAccounts = this.getResponseProperty("MaxAutoscaleSmServiceAccounts");
this.limitCollectionCdOwnerAdmin = this.getResponseProperty("LimitCollectionCdOwnerAdmin");
this.limitCollectionCreationDeletion = this.getResponseProperty(
"LimitCollectionCreationDeletion"
);
}
}

View File

@@ -48,7 +48,7 @@ export class ProfileOrganizationResponse extends BaseResponse {
familySponsorshipValidUntil?: Date;
familySponsorshipToDelete?: boolean;
accessSecretsManager: boolean;
limitCollectionCdOwnerAdmin: boolean;
limitCollectionCreationDeletion: boolean;
constructor(response: any) {
super(response);
@@ -106,6 +106,8 @@ export class ProfileOrganizationResponse extends BaseResponse {
}
this.familySponsorshipToDelete = this.getResponseProperty("FamilySponsorshipToDelete");
this.accessSecretsManager = this.getResponseProperty("AccessSecretsManager");
this.limitCollectionCdOwnerAdmin = this.getResponseProperty("LimitCollectionCdOwnerAdmin");
this.limitCollectionCreationDeletion = this.getResponseProperty(
"LimitCollectionCreationDeletion"
);
}
}