Commit e5d90dae authored by Maxym Borodenko's avatar Maxym Borodenko

User management: display DIVTREE role

parent 77c11c18
......@@ -2,15 +2,6 @@ import { UuidModel } from '@genesys/client/model/common.model';
import { SortDirection } from '@genesys/client/model/Page';
class User extends UuidModel {
public static USERROLES: { [key: string]: any } = {
USER: 'user.common.role.USER',
ADMINISTRATOR: 'user.common.role.ADMINISTRATOR',
EVERYONE: 'user.common.role.EVERYONE',
VALIDATEDUSER: 'user.common.role.VALIDATEDUSER',
VETTEDUSER: 'user.common.role.VETTEDUSER',
CONTENTMANAGER: 'user.common.role.CONTENTMANAGER',
};
public clazz: string = 'org.genesys2.server.model.impl.User';
public accountExpired: boolean;
public accountLocked: boolean;
......@@ -44,6 +35,16 @@ class User extends UuidModel {
createdDate: { property: 'createdDate', label: 'user.sort.createdDateAsc', direction: 'ASC' },
createdDateDesc: { property: 'createdDate', label: 'user.sort.createdDateDesc', direction: 'DESC' },
};
public static USERROLES: { [key: string]: any } = {
USER: 'user.common.role.USER',
ADMINISTRATOR: 'user.common.role.ADMINISTRATOR',
EVERYONE: 'user.common.role.EVERYONE',
DIVTREE: 'user.common.role.DIVTREE',
VALIDATEDUSER: 'user.common.role.VALIDATEDUSER',
VETTEDUSER: 'user.common.role.VETTEDUSER',
CONTENTMANAGER: 'user.common.role.CONTENTMANAGER',
};
}
enum UserRole {
......@@ -51,6 +52,7 @@ enum UserRole {
ADMINISTRATOR = 'ADMINISTRATOR',
EVERYONE = 'EVERYONE',
VALIDATEDUSER = 'VALIDATEDUSER',
DIVTREE = 'DIVTREE',
VETTEDUSER = 'VETTEDUSER',
CONTENTMANAGER = 'CONTENTMANAGER',
}
......
......@@ -2999,6 +2999,7 @@
"ADMINISTRATOR": "Administrator",
"EVERYONE": "Everyone",
"VALIDATEDUSER": "Validated user",
"DIVTREE": "DiversityTree user",
"VETTEDUSER": "Vetted user",
"CONTENTMANAGER": "Content manager"
},
......
......@@ -218,6 +218,7 @@
"ADMINISTRATOR": "Administrator",
"EVERYONE": "Everyone",
"VALIDATEDUSER": "Validated user",
"DIVTREE": "DiversityTree user",
"VETTEDUSER": "Vetted user",
"CONTENTMANAGER": "Content manager"
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment