From 00efae261684eb97e7fcd8fd77aa04bca5e87a72 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 17 Oct 2018 10:51:09 -0400 Subject: [PATCH] add manager org user type --- src/enums/organizationUserType.ts | 1 + src/models/domain/organization.ts | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/src/enums/organizationUserType.ts b/src/enums/organizationUserType.ts index 217c0b450e..de794fe690 100644 --- a/src/enums/organizationUserType.ts +++ b/src/enums/organizationUserType.ts @@ -2,4 +2,5 @@ export enum OrganizationUserType { Owner = 0, Admin = 1, User = 2, + Manager = 3, } diff --git a/src/models/domain/organization.ts b/src/models/domain/organization.ts index 122dc27fe0..961f8cc023 100644 --- a/src/models/domain/organization.ts +++ b/src/models/domain/organization.ts @@ -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; }