mirror of
https://github.com/go-gitea/gitea.git
synced 2026-04-03 16:52:10 +02:00
fix: update group assignment to fix incorrect 404s
This commit is contained in:
parent
d4f6f2b952
commit
10ac130ec7
@ -242,7 +242,7 @@ func groupAssignment(ctx *Context) (bool, error) {
|
||||
}
|
||||
ctx.RepoGroup.IsGroupAdmin = ctx.RepoGroup.IsGroupAdmin || isAdmin
|
||||
}
|
||||
return canAccess && (ctx.RepoGroup.IsGroupAdmin || ctx.RepoGroup.IsMember || ctx.RepoGroup.IsOwner), nil
|
||||
return canAccess, nil
|
||||
}
|
||||
|
||||
func GroupAssignment(args GroupAssignmentOptions) func(ctx *Context) {
|
||||
@ -263,7 +263,7 @@ func GroupAssignment(args GroupAssignmentOptions) func(ctx *Context) {
|
||||
|
||||
if ctx.RepoGroup.Group.Visibility == structs.VisibleTypePrivate {
|
||||
args.RequireMember = true
|
||||
} else if ctx.IsSigned && !ca {
|
||||
} else if ctx.IsSigned && (!ca && ctx.RepoGroup.Group.Visibility != structs.VisibleTypePublic) {
|
||||
ctx.NotFound(err)
|
||||
return
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user