mirror of
https://github.com/bitwarden/browser
synced 2024-12-26 09:54:35 +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