0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-06-14 13:18:05 +02:00
gitea/services
Nicolas c20df84548
fix: block fork sync when base repo is no longer readable
POST /api/v1/repos/{owner}/{repo}/merge-upstream kept importing commits
from the parent repository even after the parent was switched from public
to private, leaking commits a fork owner could no longer access directly.
Require the doer to still have read access to the base repo's code before
syncing, and map the permission error to 403 (API) / not-found (web).

Assisted-by: Claude:claude-opus-4-8
2026-06-13 17:36:35 +02:00
..
2026-06-08 17:16:22 +00:00
2026-06-08 16:58:42 +08:00