forked from github/plane
657d8e97da
* fix add subgroup issue FED-1101 * fix subgroup by None assignee FED-1100 * fix grouping by asignee or labels FED-1096 * fix create view popup FED-1093 * fix subgroup exception in swimlanes * fix show sub issue filter FED-1102 * use Enums instead of numbers * fix Estimates setting permission for admin * disable access to project settings for viewers and guests * fix project unautorized flicker * add observer to estimates * add permissions to member list
15 lines
381 B
TypeScript
15 lines
381 B
TypeScript
import { EUserWorkspaceRoles } from "constants/workspace";
|
|
|
|
export const getUserRole = (role: EUserWorkspaceRoles) => {
|
|
switch (role) {
|
|
case EUserWorkspaceRoles.GUEST:
|
|
return "GUEST";
|
|
case EUserWorkspaceRoles.VIEWER:
|
|
return "VIEWER";
|
|
case EUserWorkspaceRoles.MEMBER:
|
|
return "MEMBER";
|
|
case EUserWorkspaceRoles.ADMIN:
|
|
return "ADMIN";
|
|
}
|
|
};
|