mirror of
https://codeberg.org/forgejo/forgejo
synced 2024-11-29 21:26:10 +01:00
add return avter error on right position
This commit is contained in:
parent
5eca929185
commit
e8bb5572a0
|
@ -654,8 +654,9 @@ func AddIssueSubscription(ctx *context.APIContext) {
|
||||||
ctx.NotFound()
|
ctx.NotFound()
|
||||||
} else {
|
} else {
|
||||||
ctx.Error(500, "GetUserByName", err)
|
ctx.Error(500, "GetUserByName", err)
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
//only admin and user for itself can change subscription
|
//only admin and user for itself can change subscription
|
||||||
|
@ -727,8 +728,9 @@ func DelIssueSubscription(ctx *context.APIContext) {
|
||||||
ctx.NotFound()
|
ctx.NotFound()
|
||||||
} else {
|
} else {
|
||||||
ctx.Error(500, "GetUserByName", err)
|
ctx.Error(500, "GetUserByName", err)
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
//only admin and user for itself can change subscription
|
//only admin and user for itself can change subscription
|
||||||
|
|
Loading…
Reference in a new issue