1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-14 10:26:19 +01:00
bitwarden-browser/apps
Rui Tomé d804a78bfb
[PM-11406] Account Management: Prevent a verified user from deleting their account (#11505)
* Update AccountService to include a method for setting the managedByOrganizationId

* Update AccountComponent to conditionally show the purgeVault button based on a feature flag and if the user is managed by an organization

* Add missing method to FakeAccountService

* Remove the setAccountManagedByOrganizationId method from the AccountService abstract class.

* Refactor AccountComponent to use OrganizationService to check for managing organization

* Rename managesActiveUser to userIsManagedByOrganization

* Hide the change email section if the user is managed by an organization

* Refactor userIsManagedByOrganization property to be non-nullable in organization data and response models

* Refactor organization.data.spec.ts to include non-nullable userIsManagedByOrganization property

* Refactor account component to conditionally show delete account button based on user's organization management status

* Add showDeleteAccount$ observable to AccountComponent
2024-11-04 16:37:24 +00:00
..
browser Bumped client version(s) (#11850) 2024-11-04 15:43:54 +00:00
cli Bumped client version(s) (#11850) 2024-11-04 15:43:54 +00:00
desktop Bumped client version(s) (#11850) 2024-11-04 15:43:54 +00:00
web [PM-11406] Account Management: Prevent a verified user from deleting their account (#11505) 2024-11-04 16:37:24 +00:00