clean unrelated

pull/28024/head
m.huber 1 year ago
parent 5bc3b8655c
commit 4bc1ce0a1d
No known key found for this signature in database
GPG Key ID: B8BE6D610E61C862
  1. 5
      routers/web/user/home.go

@ -822,11 +822,6 @@ func UsernameSubRoute(ctx *context.Context) {
reloadParam := func(suffix string) (success bool) {
ctx.SetParams("username", strings.TrimSuffix(username, suffix))
context_service.UserAssignmentWeb()(ctx)
// check view permissions
if ctx.ContextUser.IsIndividual() && !user_model.IsUserVisibleToViewer(ctx, ctx.ContextUser, ctx.Doer) {
ctx.NotFound("user", fmt.Errorf(ctx.ContextUser.Name))
return false
}
return !ctx.Written()
}
switch {

Loading…
Cancel
Save