mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-05 09:10:53 +01:00
Merge pull request #1505 from bitwarden/Permissions
Implemented Custom role and permissions
This commit is contained in:
commit
a4f26ff311
2
jslib
2
jslib
@ -1 +1 @@
|
|||||||
Subproject commit cea09a22e533ef3598bb497ba0503c2fcd5b2dc1
|
Subproject commit 6ac6df75d7a9bd5ea58f5d8310f1b3e34abd2bde
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user