mirror of
https://github.com/go-gitea/gitea.git
synced 2026-11-13 04:17:14 +00:00
Adding a restricted user as a read collaborator to a public repo gave them no access when the owner isn't fully public, like a limited org. Restricted users get no default read there, and `RecalculateUserAccess` dropped their read access row. - `RecalculateUserAccess` now keeps the same read rows as `refreshAccesses`, on org-owned repos and for restricted users. - Re-saving an unchanged collaborator permission recalculates access, repairing collaborators affected before this fix. Fixes https://github.com/go-gitea/gitea/issues/40233 Assisted-by: Claude Code:claude-opus-5-5 --------- Co-authored-by: silverwind <me@silverwind.io>