Add role and permission management with enhanced access control

This update introduces functionalities for managing roles, permissions, and access control across departments. Key additions include methods for filtering, restricting, and handling user permissions, as well as new APIs for assigning/removing permissions to/from roles. Access to resources like orders, bookings, and plate scans is now securely tied to department-specific permissions.
This commit is contained in:
Jepp9350
2025-02-27 17:54:18 +01:00
parent d430f6ff7f
commit 491f268108
14 changed files with 401 additions and 39 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ trait route_t
// Check if the value is of the required type
if ($value_type !== $type) {
global $response;
$response->error('Invalid type. Expected: ' . $type . ' Got: ' . $value_type, 400);
$response->error('Invalid type. Expected: ' . $type . ' Got: ' . $value_type . ' Value: ' . $value, 400);
}
return true;
}