1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-23 03:22:50 +02:00

[PM-8082] Enforce individual vault policy for all user types except organization admins and owners (#10034)

This commit is contained in:
Rui Tomé 2024-07-23 11:08:43 +01:00 committed by GitHub
parent 0e207e851a
commit 57b8c30664
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
}