0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-05-10 09:41:52 +02:00

fix: repos in private groups being visible to non members

This commit is contained in:
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 2026-05-08 22:50:09 -04:00
parent f5861a3515
commit ccc8cd3f62
No known key found for this signature in database
GPG Key ID: 924A5F6AF051E87C

View File

@ -598,6 +598,15 @@ func repoAssignmentPrepareRepo(ctx *Context, data *repoAssignmentPrepareDataStru
if repo.GroupID != gid {
ctx.NotFound(nil)
}
if gid > 0 {
GroupAssignmentWeb(GroupAssignmentOptions{
RequireMember: true,
})(ctx)
}
if ctx.Written() {
return
}
repo.Owner = ctx.Repo.Owner
data.repo = repo
}