mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-26 23:35:51 +03:00
Merge pull request '[BUG] Fix unblock action' (#3086) from gusted/forgejo-unblock into forgejo
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/3086
This commit is contained in:
commit
ba2cd8ee64
1 changed files with 1 additions and 0 deletions
|
@ -358,6 +358,7 @@ func Action(ctx *context.Context) {
|
||||||
redirectViaJSON = true
|
redirectViaJSON = true
|
||||||
case "unblock":
|
case "unblock":
|
||||||
err = user_model.UnblockUser(ctx, ctx.Doer.ID, ctx.ContextUser.ID)
|
err = user_model.UnblockUser(ctx, ctx.Doer.ID, ctx.ContextUser.ID)
|
||||||
|
redirectViaJSON = true
|
||||||
}
|
}
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue