Skip to content

Restore non-vendor access to other users' tasks#1072

Merged
NicoPennec merged 2 commits into
cgwire:mainfrom
NicoPennec:main
May 12, 2026
Merged

Restore non-vendor access to other users' tasks#1072
NicoPennec merged 2 commits into
cgwire:mainfrom
NicoPennec:main

Conversation

@NicoPennec
Copy link
Copy Markdown
Member

Problem

  • Users with role user/supervisor/manager could no longer see other users' tasks on shared projects since f6751b5, which added an admin-only check on person task endpoints (/data/persons/<id>/tasks, /done-tasks, /task-types/<id>/tasks).
  • The commit message described a time-spent restriction, but the check was applied to task endpoints instead — the original intent was to restrict vendors only.

Solution

  • Replace the admin check with a vendor-specific guard: vendors can only query their own tasks.
  • Other roles fall back to the existing related_projects() filter, restoring the historical behavior.

@NicoPennec NicoPennec merged commit d6ea897 into cgwire:main May 12, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant