User management and module improvements
- Added daily_mirror module to permissions system - Fixed user module management - updates now work correctly - Implemented dashboard module filtering based on user permissions - Fixed warehouse create_locations page (config parser and delete) - Implemented POST-Redirect-GET pattern to prevent duplicate entries - Added application license system with validation middleware - Cleaned up debug logging code - Improved user module selection with fetch API instead of form submit
This commit is contained in:
@@ -23,6 +23,12 @@ MODULES = {
|
||||
'scan_pages': ['move_orders'],
|
||||
'management_pages': ['create_locations', 'warehouse_reports', 'inventory_management'],
|
||||
'worker_access': ['move_orders_only'] # Workers can move orders but not create locations
|
||||
},
|
||||
'daily_mirror': {
|
||||
'name': 'Daily Mirror (BI & Reports)',
|
||||
'scan_pages': [],
|
||||
'management_pages': ['daily_mirror', 'build_database', 'view_production_data'],
|
||||
'worker_access': [] # Workers typically don't need access to BI
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user