We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa2a2f2 commit 7a56248Copy full SHA for 7a56248
services/context/group.go
@@ -106,6 +106,16 @@ func GroupAssignment(args GroupAssignmentOptions) func(ctx *Context) {
106
ctx.NotFound(err)
107
return
108
}
109
+ canAccess, err := ctx.RepoGroup.Group.CanAccess(ctx, ctx.Doer)
110
+ if err != nil {
111
+ ctx.ServerError("error checking group access", err)
112
+ return
113
+ }
114
+ if !canAccess {
115
+ ctx.NotFound(nil)
116
117
118
+
119
if ctx.RepoGroup.Group.Visibility == structs.VisibleTypePrivate {
120
args.RequireMember = true
121
} else if ctx.IsSigned && ctx.Doer.IsRestricted {
0 commit comments