Move MI endpoints from v3 to v1

This commit is contained in:
Tuan Dang
2023-12-05 22:24:25 +07:00
parent 855158d0bb
commit 591f33ffbe
15 changed files with 34 additions and 33 deletions
@@ -362,7 +362,7 @@ export const getAuthDataProjectPermissions = async ({
}
}
export const getRolePermissions = async (role: string, workspaceId: string) => {
export const getWorkspaceRolePermissions = async (role: string, workspaceId: string) => {
const isCustomRole = ![ADMIN, MEMBER, VIEWER, NO_ACCESS].includes(role);
if (isCustomRole) {
const workspaceRole = await Role.findOne({