mirror of
https://github.com/go-gitea/gitea
synced 2024-11-16 15:14:24 +00:00
clean unrelated
This commit is contained in:
parent
5bc3b8655c
commit
4bc1ce0a1d
@ -822,11 +822,6 @@ func UsernameSubRoute(ctx *context.Context) {
|
|||||||
reloadParam := func(suffix string) (success bool) {
|
reloadParam := func(suffix string) (success bool) {
|
||||||
ctx.SetParams("username", strings.TrimSuffix(username, suffix))
|
ctx.SetParams("username", strings.TrimSuffix(username, suffix))
|
||||||
context_service.UserAssignmentWeb()(ctx)
|
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()
|
return !ctx.Written()
|
||||||
}
|
}
|
||||||
switch {
|
switch {
|
||||||
|
Loading…
Reference in New Issue
Block a user