mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-27 12:36:14 +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,
|
Owner = 0,
|
||||||
Admin = 1,
|
Admin = 1,
|
||||||
User = 2,
|
User = 2,
|
||||||
|
Manager = 3,
|
||||||
}
|
}
|
||||||
|
@ -49,6 +49,11 @@ export class Organization {
|
|||||||
return this.enabled && this.status === OrganizationUserStatusType.Confirmed;
|
return this.enabled && this.status === OrganizationUserStatusType.Confirmed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get isManager() {
|
||||||
|
return this.type === OrganizationUserType.Manager || this.type === OrganizationUserType.Owner ||
|
||||||
|
this.type === OrganizationUserType.Admin;
|
||||||
|
}
|
||||||
|
|
||||||
get isAdmin() {
|
get isAdmin() {
|
||||||
return this.type === OrganizationUserType.Owner || this.type === OrganizationUserType.Admin;
|
return this.type === OrganizationUserType.Owner || this.type === OrganizationUserType.Admin;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user