mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 08:43:33 +00:00
delete organization
This commit is contained in:
@@ -140,6 +140,19 @@ angular
|
||||
});
|
||||
};
|
||||
|
||||
_service.removeProfileOrganization = function (orgId) {
|
||||
return _service.getUserProfile().then(function (profile) {
|
||||
if (profile) {
|
||||
if (profile.organizations && profile.organizations.hasOwnProperty(orgId)) {
|
||||
delete profile.organizations[orgId];
|
||||
_userProfile = profile;
|
||||
}
|
||||
|
||||
cryptoService.clearOrgKey(orgId);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
_service.updateProfileOrganization = function (org) {
|
||||
return _service.getUserProfile().then(function (profile) {
|
||||
if (profile) {
|
||||
|
||||
Reference in New Issue
Block a user