1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-21 11:35:34 +01:00

[AC-1797] Prevent billing email/business name update for resellers (#7042)

* Prevent billing email/business name updates for reseller

* Enable business name based on CS feedback

* Fixed prettier issue
This commit is contained in:
Alex Morask 2023-12-11 10:26:43 -05:00 committed by GitHub
parent ea9cc85f7f
commit 4f9120576d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -122,13 +122,13 @@ export class AccountComponent {
// Update disabled states - reactive forms prefers not using disabled attribute
if (!this.selfHosted) {
this.formGroup.get("orgName").enable();
this.formGroup.get("businessName").enable();
this.collectionManagementFormGroup.get("limitCollectionCreationDeletion").enable();
this.collectionManagementFormGroup.get("allowAdminAccessToAllCollectionItems").enable();
}
if (!this.selfHosted || this.canEditSubscription) {
if (!this.selfHosted && this.canEditSubscription) {
this.formGroup.get("billingEmail").enable();
this.formGroup.get("businessName").enable();
}
// Org Response