Skip to content

Debug/fix project visibility - #53

Merged
dcl10 merged 2 commits into
mainfrom
debug/fix-project-visibility
Jun 10, 2026
Merged

Debug/fix project visibility#53
dcl10 merged 2 commits into
mainfrom
debug/fix-project-visibility

Conversation

@dcl10

@dcl10 dcl10 commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Description

Fix bug allowing users to see projects they are not members of.

Linked issues

(Optional) Screenshots

dcl10 and others added 2 commits June 10, 2026 10:08
All authenticated users could previously read any project because the
CanManageProjects policy only checked for a role claim, not membership.
GET endpoints now use the default authenticated-user policy; ListAsync
and GetAsync filter results to projects the caller created or has a
TeamMembership on. Write endpoints retain the CanManageProjects role
requirement.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Removed ManageProjectsRole from GET test clients (no longer required),
replaced the forbidden-without-role assertion with an empty-list check,
and added four new cases covering: member can see a project, non-member
cannot see a project (for both List and Get endpoints).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@dcl10
dcl10 merged commit e3d24cd into main Jun 10, 2026
1 check passed
@dcl10
dcl10 deleted the debug/fix-project-visibility branch June 10, 2026 09:11
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