mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-11 10:10:25 +01:00
[PM-8082] Enforce individual vault policy for all user types except organization admins and owners (#10034)
This commit is contained in:
parent
0e207e851a
commit
57b8c30664
@ -235,6 +235,9 @@ export class PolicyService implements InternalPolicyServiceAbstraction {
|
||||
case PolicyType.PasswordGenerator:
|
||||
// password generation policy applies to everyone
|
||||
return false;
|
||||
case PolicyType.PersonalOwnership:
|
||||
// individual vault policy applies to everyone except admins and owners
|
||||
return organization.isAdmin;
|
||||
default:
|
||||
return organization.canManagePolicies;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user