Scope mapping reads and writes to event types whose source the caller may see.
Why
A person-owned source hides its event types from other members, but mapping endpoints queried mappings by organisation and exposed their metadata. The mapping's optional source ID is only a hint; the event type's source is authoritative.
How
Filter mapping lists by caller-visible event types, return 404 for inaccessible mappings, and reject create/update/delete when the event type belongs to another person's source.
Verification
task check passed. The browser check was skipped because no Chrome/Chromium binary is installed. Regression tests were observed failing before the fix and after mutating the visibility guards, and passing with the fix.
## What
Scope mapping reads and writes to event types whose source the caller may see.
## Why
A person-owned source hides its event types from other members, but mapping endpoints queried mappings by organisation and exposed their metadata. The mapping's optional source ID is only a hint; the event type's source is authoritative.
## How
Filter mapping lists by caller-visible event types, return 404 for inaccessible mappings, and reject create/update/delete when the event type belongs to another person's source.
## Verification
`task check` passed. The browser check was skipped because no Chrome/Chromium binary is installed. Regression tests were observed failing before the fix and after mutating the visibility guards, and passing with the fix.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
What
Scope mapping reads and writes to event types whose source the caller may see.
Why
A person-owned source hides its event types from other members, but mapping endpoints queried mappings by organisation and exposed their metadata. The mapping's optional source ID is only a hint; the event type's source is authoritative.
How
Filter mapping lists by caller-visible event types, return 404 for inaccessible mappings, and reject create/update/delete when the event type belongs to another person's source.
Verification
task checkpassed. The browser check was skipped because no Chrome/Chromium binary is installed. Regression tests were observed failing before the fix and after mutating the visibility guards, and passing with the fix.