[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
1 changed files with 3 additions and 0 deletions

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