0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-05-10 14:01:54 +02:00

fix: handle error when getting group by parms during group assignment

This commit is contained in:
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 2026-05-08 23:19:24 -04:00
parent ccc8cd3f62
commit ceaa60f691
No known key found for this signature in database
GPG Key ID: 924A5F6AF051E87C

View File

@ -111,6 +111,10 @@ func groupAssignment(ctx commonCtx, doer *user_model.User, isSigned bool, handle
if repoGroup.Group == nil {
err = getGroupByParams(ctx, repoGroup, handleNotFound, handleOtherError)
}
if err != nil {
handleOtherError("GetGroupByParams", err)
return
}
if ctx.Written() {
return
}