From 57b8c306645e855894e90c2ca62438b35d242b4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rui=20Tom=C3=A9?= <108268980+r-tome@users.noreply.github.com> Date: Tue, 23 Jul 2024 11:08:43 +0100 Subject: [PATCH] [PM-8082] Enforce individual vault policy for all user types except organization admins and owners (#10034) --- .../common/src/admin-console/services/policy/policy.service.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/common/src/admin-console/services/policy/policy.service.ts b/libs/common/src/admin-console/services/policy/policy.service.ts index e36902cbf9..7ec525f960 100644 --- a/libs/common/src/admin-console/services/policy/policy.service.ts +++ b/libs/common/src/admin-console/services/policy/policy.service.ts @@ -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; }