refactor: separate function

This commit is contained in:
Methapon Metanipat 2024-09-05 09:01:28 +07:00
parent 05a959ee55
commit 42cce880cd
3 changed files with 7 additions and 7 deletions

5
src/utils/keycloak.ts Normal file
View file

@ -0,0 +1,5 @@
import { RequestWithUser } from "../interfaces/user";
export function isSystem(user: RequestWithUser["user"]) {
return user.roles.includes("system");
}