0
0
mirror of https://github.com/makeplane/plane synced 2024-06-14 14:31:34 +00:00
plane/web/helpers/user.helper.ts

15 lines
381 B
TypeScript
Raw Normal View History

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