1
0
mirror of https://github.com/bitwarden/jslib synced 2025-12-15 07:43:45 +00:00

Fixes and cleanup for policyAppliesToUser (#476)

* Fix canManagePolicies logic to include providers

* Move new logic to isOwner (same as server)

* Refactor policyAppliesToUser

* Use const instead of var

* Fix linting
This commit is contained in:
Thomas Rittson
2021-09-09 07:34:27 +10:00
committed by GitHub
parent bbe8d3df48
commit 5f64d95652
2 changed files with 9 additions and 12 deletions

View File

@@ -89,7 +89,7 @@ export class Organization {
}
get isOwner() {
return this.type === OrganizationUserType.Owner;
return this.type === OrganizationUserType.Owner || this.isProviderUser;
}
get canAccessBusinessPortal() {