@@ -37,10 +37,7 @@ export function checkPerm(str: string) {
if (roles.includes("ROOT")) {
return true;
}
- const hasPerm = perms?.some((perm) => {
- return str.includes(perm);
- });
- return hasPerm;
+ return perms.includes(str);
/**