mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 14:23:32 +00:00
Implemented Custom role and permissions
This commit is contained in:
@@ -478,7 +478,7 @@ export default class RuntimeBackground {
|
|||||||
for (const policy of personalOwnershipPolicies) {
|
for (const policy of personalOwnershipPolicies) {
|
||||||
if (policy.enabled) {
|
if (policy.enabled) {
|
||||||
const org = await this.userService.getOrganization(policy.organizationId);
|
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) {
|
&& org.status === OrganizationUserStatusType.Confirmed) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user