When a task is shared with a member, that member cannot "View Task" from the Workspace page for that task.
Steps to Reproduce:
- Be an Organization member (Member A)
- Log into Coder and create a Task
- Click ... on that task and Share
- Share with another Organization member (Member B)
- Log in as Member B and navigate to the Workspaces page
- Find the task workspace using the "Shared Workspaces" filter
- Go to the task workspace page
- Click on "View Task"
Expected Behavior:
Member B is able to view task since it was shared.
Actual Behavior:
Member B gets a 404 for that task. api/v2/tasks/<user>/<task-id> throws a 404 because Member B is likely missing access.