tududi/backend/tests
Ali 9edbe142b6
fix(tasks): prevent projectless task visibility leaks (#1066)
Fixes task metrics queries that could show private projectless tasks in another user's Today/dashboard lists. The issue happened because dashboard-specific Op.or filters could overwrite the task visibility Op.or condition when query objects were combined with object spread.

This addresses issue #1063 where tasks created from Inbox, Telegram, or directly in the web app could appear for other users when they were not assigned to a shared project.

Changes:
- Combined task visibility filters with dashboard filters using Op.and
- Prevented metrics Op.or conditions from overwriting permission filters
- Preserved access for owned, directly shared, and shared-project tasks
- Added regression tests for tasks_in_progress and suggested_tasks leaks

Fixes #1063
2026-04-25 19:18:52 +03:00
..
helpers feat(caldav): Add CalDAV Synchronization Support (Issue #978) (#1030) 2026-04-17 17:40:39 +03:00
integration fix(tasks): prevent projectless task visibility leaks (#1066) 2026-04-25 19:18:52 +03:00
mocks Add nanoid 2025-08-04 23:50:53 +03:00
unit fix(oidc): normalize OIDC_SCOPE to handle whitespace issues (#1060) 2026-04-24 13:15:58 +03:00