Merge branch 'develop'

This commit is contained in:
Methapon2001 2025-07-09 10:15:04 +07:00
commit ab1d5f1326

View file

@ -56,7 +56,7 @@ const MANAGE_ROLES = [
];
function globalAllow(user: RequestWithUser["user"]) {
const listAllowed = ["system", "head_of_admin", "admin", "executive", "accountant"];
const listAllowed = MANAGE_ROLES;
return user.roles?.some((v) => listAllowed.includes(v)) || false;
}