5 Commits (422747c1777d73602b488b42d296b305a3473a02)

Author SHA1 Message Date
borja 422747c177 feat: add access control for task completion
Users can only complete tasks if they are:
- Assigned to the task, OR
- An active member of the task's group, OR
- An admin (ADMIN_USERS env var)

Changes:
- TaskService.completeTask() now checks assignment, group membership,
  and admin status before allowing completion
- Returns 'forbidden' status when unauthorized
- completar command handler shows appropriate error message
- Web path (loadTaskAndGating) gets admin override for consistency
- AdminService.isAdmin() made public for reuse
- Updated tests to respect new access control + 12 new test cases
1 month ago
brobert 39b6251b7b test: usar setDb y resetDb para gestionar DB en tests
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
7 months ago
brobert 77e318e677 refactor: centralizar pruebas de crypto/fechas y alias toIsoSql
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
7 months ago
brobert 5b78be0eff test: evita trigger migración v15 ajustando limpieza en tests
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
8 months ago
brobert 89c837b34d test: añade tests unitarios para la reacción al completar
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
8 months ago