Skip to content

fix(auth): align project and study policies with member access#1421

Merged
NishaSharma14 merged 3 commits into
developmentfrom
fix/project-study-policies
Jun 4, 2026
Merged

fix(auth): align project and study policies with member access#1421
NishaSharma14 merged 3 commits into
developmentfrom
fix/project-study-policies

Conversation

@vcnainala
Copy link
Copy Markdown
Member

Summary

  • Tighten ProjectPolicy and StudyPolicy authorization for collaborators and reviewers.
  • Align project invite flow and ProjectResource with updated access rules.

Test plan

  • php artisan test tests/Feature/Project/ProjectMemberManagementTest.php tests/Feature/Project/ProjectControllerAdditionalCoverageTest.php
  • Invite a member and verify study/project visibility matches role.

vcnainala and others added 3 commits June 3, 2026 23:25
Ensure invite flows and API resources respect updated authorization
rules for collaborators and reviewers.
Return owner from userProjectRole when the user owns the project but is
not on the members pivot, and match policy PR tests to Project/Show until
the public browse refactor lands.
@NishaSharma14 NishaSharma14 merged commit 7f4705d into development Jun 4, 2026
4 of 5 checks passed
@NishaSharma14 NishaSharma14 deleted the fix/project-study-policies branch June 4, 2026 08:13
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.

2 participants