fix import path
This commit is contained in:
1 parent
604b20855b
commit
ac2b7bd65d
2 files changed
+14
-1
No files matched your search
@@ -0,0 +1,13 @@
|
|||||||
|
export const ROLES = {
|
||||||
|
SUPERADMIN: "superadmin",
|
||||||
|
ADMIN: "admin",
|
||||||
|
USER: "user",
|
||||||
|
DEMO: "demo",
|
||||||
|
};
|
||||||
|
|
||||||
|
export const VALID_ROLES = [ROLES.ADMIN, ROLES.USER, ROLES.DEMO];
|
||||||
|
|
||||||
|
export const EDITABLE_ROLES = [
|
||||||
|
{ role: ROLES.ADMIN, _id: ROLES.ADMIN },
|
||||||
|
{ role: ROLES.USER, _id: ROLES.USER },
|
||||||
|
];
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
import joi from "joi";
|
import joi from "joi";
|
||||||
import { ROLES, VALID_ROLES } from "../../client/src/Utils/roleUtils.js";
|
import { ROLES, VALID_ROLES } from "../utils/roleUtils.js";
|
||||||
|
|
||||||
//****************************************
|
//****************************************
|
||||||
// Custom Validators
|
// Custom Validators
|
||||||
|
|||||||
Reference in new issue
Block a user