mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-05 09:10:53 +01:00
add manager org user type
This commit is contained in:
parent
2f6426deb4
commit
00efae2616
@ -2,4 +2,5 @@ export enum OrganizationUserType {
|
||||
Owner = 0,
|
||||
Admin = 1,
|
||||
User = 2,
|
||||
Manager = 3,
|
||||
}
|
||||
|
@ -49,6 +49,11 @@ export class Organization {
|
||||
return this.enabled && this.status === OrganizationUserStatusType.Confirmed;
|
||||
}
|
||||
|
||||
get isManager() {
|
||||
return this.type === OrganizationUserType.Manager || this.type === OrganizationUserType.Owner ||
|
||||
this.type === OrganizationUserType.Admin;
|
||||
}
|
||||
|
||||
get isAdmin() {
|
||||
return this.type === OrganizationUserType.Owner || this.type === OrganizationUserType.Admin;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user