feat/role-check: wip
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
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[]>> = {
|
||||
'/client/patient': {
|
||||
'emp|reg': ['C','R','U','D'],
|
||||
},
|
||||
'/client/patient/add': {
|
||||
'emp|reg': ['C','R','U','D'],
|
||||
},
|
||||
'/client/patient/{id}': {
|
||||
'emp|reg': ['C','R','U','D'],
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user