From 7abb5fa08e67368f20996e17d255034746d38a7f Mon Sep 17 00:00:00 2001 From: addison Date: Tue, 22 Dec 2020 15:02:14 -0500 Subject: [PATCH] Implemented Custom role and permissions --- src/background/runtime.background.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/background/runtime.background.ts b/src/background/runtime.background.ts index cb6cede46d..f08915352b 100644 --- a/src/background/runtime.background.ts +++ b/src/background/runtime.background.ts @@ -478,7 +478,7 @@ export default class RuntimeBackground { for (const policy of personalOwnershipPolicies) { if (policy.enabled) { const org = await this.userService.getOrganization(policy.organizationId); - if (org != null && org.enabled && org.usePolicies && !org.isAdmin + if (org != null && org.enabled && org.usePolicies && !org.canManagePolicies && org.status === OrganizationUserStatusType.Confirmed) { return false; }