fix(auth): change mappingList
This commit is contained in:
@@ -12,15 +12,9 @@ type PermissionMap = {
|
||||
}
|
||||
|
||||
const mappingList: { [x: string]: [string, string] } = {
|
||||
"/project/own": ["project", "config"],
|
||||
"/management/team/employee": ["user", "view"],
|
||||
"/management/team/organization": ["user", "group_view"],
|
||||
"/management/team/dailypaper": ["daily_work", "team_view"],
|
||||
"/management/team/cost": ["settlement_form", "view"],
|
||||
"/management/team/workload": ["workload", "view"],
|
||||
"/management/team/sync_server": ["data_sync", "server_view"],
|
||||
"/management/team/sync_task": ["data_sync", "task_view"],
|
||||
"/management/team/board": ["user", "view"],
|
||||
"/person/dashboard": ["task", "view"],
|
||||
"/person/report": ["daily_work", "self_view"],
|
||||
"/person/workload": ["workload", "self_view"],
|
||||
}
|
||||
|
||||
export const headerBarCheckItems = (data: PermissionMap) => {
|
||||
|
||||
Reference in New Issue
Block a user