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:
@@ -89,7 +89,7 @@ export class Organization {
|
||||
}
|
||||
|
||||
get isOwner() {
|
||||
return this.type === OrganizationUserType.Owner;
|
||||
return this.type === OrganizationUserType.Owner || this.isProviderUser;
|
||||
}
|
||||
|
||||
get canAccessBusinessPortal() {
|
||||
|
||||
Reference in New Issue
Block a user