1
0
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:
Kyle Spearrin 2018-10-17 10:51:09 -04:00
parent 2f6426deb4
commit 00efae2616
2 changed files with 6 additions and 0 deletions

View File

@ -2,4 +2,5 @@ export enum OrganizationUserType {
Owner = 0,
Admin = 1,
User = 2,
Manager = 3,
}

View File

@ -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;
}