0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-05-21 11:00:28 +02:00

ensure visited repo's group owner is the same as the repo's owner, otherwise return 404

This commit is contained in:
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 2025-08-21 20:08:20 -04:00
parent e6ee1a248f
commit d37bbd29d5
No known key found for this signature in database
GPG Key ID: 924A5F6AF051E87C

View File

@ -282,10 +282,6 @@ func GetGroup(ctx *context.APIContext) {
ctx.APIErrorNotFound() ctx.APIErrorNotFound()
return return
} }
if group.OwnerID != ctx.Org.Organization.ID {
ctx.APIErrorNotFound()
return
}
if err != nil { if err != nil {
ctx.APIErrorInternal(err) ctx.APIErrorInternal(err)
return return
@ -299,7 +295,7 @@ func GetGroup(ctx *context.APIContext) {
} }
func DeleteGroup(ctx *context.APIContext) { func DeleteGroup(ctx *context.APIContext) {
// swagger:operation DELETE /groups/{group_id} repositoryGroup groupDelete // swagger:operation DELETE /groups/{group_id} repository-group groupDelete
// --- // ---
// summary: Delete a repository group // summary: Delete a repository group
// produces: // produces: