Infer genlocke visibility from first leg's run #77

Merged
TheFurya merged 1 commits from feature/infer-genlocke-visibility-from-first-legs-run into feature/enforce-run-ownership-on-all-mutation-endpoints 2026-03-22 09:15:20 +01:00
Owner

Summary

  • Infer genlocke visibility from the first leg's run visibility (public/private)
  • Add ownership checks on genlocke mutation endpoints via the first leg's run owner
  • Filter private genlockes from list/detail views for non-owners

Note: This PR targets feature/enforce-run-ownership-on-all-mutation-endpoints (#74) as it depends on the ownership enforcement changes.

Test plan

  • Verify private genlockes are hidden from non-owners in list view
  • Verify private genlocke detail returns 403 for non-owners
  • Verify genlocke mutations are restricted to the first leg's run owner

🤖 Generated with Claude Code

## Summary - Infer genlocke visibility from the first leg's run visibility (public/private) - Add ownership checks on genlocke mutation endpoints via the first leg's run owner - Filter private genlockes from list/detail views for non-owners **Note:** This PR targets `feature/enforce-run-ownership-on-all-mutation-endpoints` (#74) as it depends on the ownership enforcement changes. ## Test plan - [ ] Verify private genlockes are hidden from non-owners in list view - [ ] Verify private genlocke detail returns 403 for non-owners - [ ] Verify genlocke mutations are restricted to the first leg's run owner 🤖 Generated with [Claude Code](https://claude.com/claude-code)
TheFurya added 1 commit 2026-03-21 14:06:46 +01:00
Genlockes now inherit visibility from their first leg's run:
- Private runs make genlockes hidden from public listings
- All genlocke read endpoints now accept optional auth
- Returns 404 for private genlockes to non-owners

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
TheFurya merged commit 596393d5b8 into feature/enforce-run-ownership-on-all-mutation-endpoints 2026-03-22 09:15:20 +01:00
TheFurya deleted branch feature/infer-genlocke-visibility-from-first-legs-run 2026-03-22 09:15:21 +01:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: pokemon/nuzlocke-tracker#77