feat: add more role to endpoints
This commit is contained in:
parent
c3e16d0580
commit
20c7414407
1 changed files with 9 additions and 1 deletions
|
|
@ -24,7 +24,15 @@ if (!process.env.MINIO_BUCKET) {
|
||||||
}
|
}
|
||||||
|
|
||||||
const MINIO_BUCKET = process.env.MINIO_BUCKET;
|
const MINIO_BUCKET = process.env.MINIO_BUCKET;
|
||||||
const MANAGE_ROLES = ["system", "head_of_admin", "admin", "head_of_sale", "sale"];
|
const MANAGE_ROLES = [
|
||||||
|
"system",
|
||||||
|
"head_of_admin",
|
||||||
|
"admin",
|
||||||
|
"branch_admin",
|
||||||
|
"branch_manager",
|
||||||
|
"head_of_sale",
|
||||||
|
"sale",
|
||||||
|
];
|
||||||
|
|
||||||
export type CustomerCreate = {
|
export type CustomerCreate = {
|
||||||
registeredBranchId?: string;
|
registeredBranchId?: string;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue