Implement worker schedule access control and runtime tracking: Added a new user right worker_schedule_read to manage access to the getWorkerSchedules WebSocket endpoint. Enhanced the WebSocket server to handle requests for worker schedules, including detailed responses. Introduced runtime tracking for workers, allowing for monitoring of their current state and activity. Updated relevant SQL and Rust structures to support these features.
All checks were successful
Deploy yourpart (blue-green) / deploy (push) Successful in 1m36s
All checks were successful
Deploy yourpart (blue-green) / deploy (push) Successful in 1m36s
This commit is contained in:
9
migrations/018_worker_schedule_socket_right.sql
Normal file
9
migrations/018_worker_schedule_socket_right.sql
Normal file
@@ -0,0 +1,9 @@
|
||||
-- Recht für WebSocket-Endpoint `getWorkerSchedules`.
|
||||
-- Zugriff nur für Admins oder User mit diesem Recht.
|
||||
INSERT INTO "type".user_right (title)
|
||||
SELECT 'worker_schedule_read'
|
||||
WHERE NOT EXISTS (
|
||||
SELECT 1
|
||||
FROM "type".user_right
|
||||
WHERE LOWER(title) = 'worker_schedule_read'
|
||||
);
|
||||
Reference in New Issue
Block a user