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 d412271 commit 34e22fdCopy full SHA for 34e22fd
routers/web/user/home.go
@@ -822,6 +822,11 @@ 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 !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