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:
parent
ccc8cd3f62
commit
ceaa60f691
@ -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
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user