Skip to content

Commit 4bc1ce0

Browse files
committed
clean unrelated
1 parent 5bc3b86 commit 4bc1ce0

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

routers/web/user/home.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -822,11 +822,6 @@ func UsernameSubRoute(ctx *context.Context) {
822822
reloadParam := func(suffix string) (success bool) {
823823
ctx.SetParams("username", strings.TrimSuffix(username, suffix))
824824
context_service.UserAssignmentWeb()(ctx)
825-
// check view permissions
826-
if ctx.ContextUser.IsIndividual() && !user_model.IsUserVisibleToViewer(ctx, ctx.ContextUser, ctx.Doer) {
827-
ctx.NotFound("user", fmt.Errorf(ctx.ContextUser.Name))
828-
return false
829-
}
830825
return !ctx.Written()
831826
}
832827
switch {

0 commit comments

Comments
 (0)