feat: add more role to endpoints

This commit is contained in:
Methapon2001 2024-07-03 14:40:07 +07:00
parent c3e16d0580
commit 20c7414407

View file

@ -24,7 +24,15 @@ if (!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 = {
registeredBranchId?: string;