Skip to content

Scope project and allocation reads to membership by default - #549

Merged
lahirujayathilake merged 1 commit into
masterfrom
533
Aug 20, 2026
Merged

Scope project and allocation reads to membership by default#549
lahirujayathilake merged 1 commit into
masterfrom
533

Conversation

@lahirujayathilake

Copy link
Copy Markdown
Member

Problem

Projects and Allocations are a researcher's own views, but the read routes required the core:projects:read / core:allocations:read site privileges. A plain allocation member with no site privilege saw nothing on their own project and allocation pages.

What changed

  • Members now see their own projects and allocations by default, no site privilege needed.
  • Non-members get a 404, the same as a missing id.
  • Admins with the privilege still get the full listing, unchanged.
  • Applies to the project and allocation read routes (list and detail).
  • Web pages drop their permission gates, since the backend now scopes the reads.

@lahirujayathilake
lahirujayathilake merged commit 85fd95a into master Aug 20, 2026
2 checks passed
@lahirujayathilake
lahirujayathilake deleted the 533 branch August 20, 2026 07:31
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