fix(security): 403 for all users on private repos #423
@@ -455,7 +455,7 @@ func repoAssignmentLegacy(ctx *Context, data *repoAssignmentPrepareDataStruct) {
|
||||
return
|
||||
}
|
||||
} else {
|
||||
ctx.NotFound(nil)
|
||||
ctx.HTTPError(http.StatusForbidden, "You do not have permission to access this repository")
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user