feat/page-claning: moved some consts from lib
This commit is contained in:
No files matched your search
@@ -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'],
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user