mirror of
https://github.com/go-gitea/gitea
synced 2025-07-15 23:17:19 +00:00
bump to go 1.23 (#31855)
This commit is contained in:
@@ -730,7 +730,7 @@ func UsernameSubRoute(ctx *context.Context) {
|
||||
|
||||
// check view permissions
|
||||
if !user_model.IsUserVisibleToViewer(ctx, ctx.ContextUser, ctx.Doer) {
|
||||
ctx.NotFound("user", fmt.Errorf(ctx.ContextUser.Name))
|
||||
ctx.NotFound("user", fmt.Errorf("%s", ctx.ContextUser.Name))
|
||||
return false
|
||||
}
|
||||
return true
|
||||
|
Reference in New Issue
Block a user