Enforce staff-only assignments

This commit is contained in:
2026-04-05 16:17:58 -06:00
parent 153ec836cf
commit 521537dc8f

View File

@@ -0,0 +1,5 @@
-- Activate all employees in the users table so they appear in dropdowns
UPDATE users u
SET u.active = TRUE
WHERE u.role IN ('STAFF', 'ADMIN')
AND EXISTS (SELECT 1 FROM employee e WHERE e.user_id = u.id);