1
0
mirror of https://github.com/bitwarden/browser synced 2024-12-25 17:32:46 +01:00

Implemented Custom role and permissions

This commit is contained in:
addison 2020-12-22 15:02:14 -05:00
parent 83cea49a1b
commit 7abb5fa08e

View File

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