feat/page-claning: moved some consts from lib

This commit is contained in:
Andrian Roshandy
2025-11-24 08:11:50 +07:00
parent 8aac6c4318
commit 33abc5b50c
15 changed files with 323 additions and 10 deletions

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
import type { Permission } from "~/models/role";
// Should we define the keys first?
// export type Keys = 'key1' | 'key2' | 'key3' | etc
export const permissions: Record<string, Record<string, Permission[]>> = {
'/human-src/employee': {
'div|hrd': ['C', 'R', 'U', 'D'],
},
'/human-src/employee/add': {
'div|hrd': ['C', 'R', 'U', 'D'],
},
'/human-src/employee/[id]/edit': {
'div|hrd': ['C', 'R', 'U', 'D'],
},
'/human-src/intern': {
'div|hrd': ['C', 'R', 'U', 'D'],
},
'/human-src/intern/add': {
'div|hrd': ['C', 'R', 'U', 'D'],
},
'/human-src/intern/[id]/edit': {
'div|hrd': ['C', 'R', 'U', 'D'],
},
}