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:
parent
f5861a3515
commit
ccc8cd3f62
@ -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
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user