mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
15 lines
383 B
TypeScript
15 lines
383 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";
|
|
}
|
|
};
|