Web:Common:Constants: add new employee types

This commit is contained in:
TimofeyBoyko 2022-10-13 19:46:38 +05:00
parent 6a8ce64942
commit 6eda3b0d89
2 changed files with 6 additions and 2 deletions

View File

@ -98,10 +98,10 @@ class UsersStore {
try {
switch (type) {
case "admin":
case EmployeeType.DocSpaceAdmin:
await changeAdmins(userIds, fullAccessId, true);
break;
case "manager":
case EmployeeType.RoomAdmin:
case EmployeeType.User:
const actions = [];
if (fromType.includes("admin")) {

View File

@ -27,6 +27,10 @@ export const EmployeeStatus = Object.freeze({
export const EmployeeType = Object.freeze({
User: 1,
Guest: 2,
UserString: "user",
RoomAdmin: "manager",
DocSpaceAdmin: "admin",
Owner: "Owner",
});
/**
* Enum for filter type.