mirror of
https://github.com/bitwarden/browser
synced 2025-12-14 15:23:33 +00:00
[PM-8082] Enforce individual vault policy for all user types except organization admins and owners (#10034)
This commit is contained in:
@@ -235,6 +235,9 @@ export class PolicyService implements InternalPolicyServiceAbstraction {
|
|||||||
case PolicyType.PasswordGenerator:
|
case PolicyType.PasswordGenerator:
|
||||||
// password generation policy applies to everyone
|
// password generation policy applies to everyone
|
||||||
return false;
|
return false;
|
||||||
|
case PolicyType.PersonalOwnership:
|
||||||
|
// individual vault policy applies to everyone except admins and owners
|
||||||
|
return organization.isAdmin;
|
||||||
default:
|
default:
|
||||||
return organization.canManagePolicies;
|
return organization.canManagePolicies;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user