feat: add 'can_be_assigned' field to users with updates to user creation, retrieval, and assignment queries

This commit is contained in:
2025-10-09 14:55:11 +02:00
parent 1288fe1cf8
commit cdfc37c273
4 changed files with 71 additions and 11 deletions

View File

@@ -148,7 +148,7 @@ export function getAllUsersForAssignment() {
`
SELECT id, name, username, role
FROM users
WHERE is_active = 1 AND role != 'admin'
WHERE is_active = 1 AND can_be_assigned = 1
ORDER BY name
`
)