We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bc3b86 commit 4bc1ce0Copy full SHA for 4bc1ce0
routers/web/user/home.go
@@ -822,11 +822,6 @@ func UsernameSubRoute(ctx *context.Context) {
822
reloadParam := func(suffix string) (success bool) {
823
ctx.SetParams("username", strings.TrimSuffix(username, suffix))
824
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
- }
830
return !ctx.Written()
831
}
832
switch {
0 commit comments