aboutsummaryrefslogtreecommitdiffstats
path: root/routers/web/org/home.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/web/org/home.go')
-rw-r--r--routers/web/org/home.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/web/org/home.go b/routers/web/org/home.go
index ad14f18454..aad0a2a90b 100644
--- a/routers/web/org/home.go
+++ b/routers/web/org/home.go
@@ -30,8 +30,8 @@ func Home(ctx *context.Context) {
org := ctx.Org.Organization
- if !models.HasOrgVisible(org, ctx.User) {
- ctx.NotFound("HasOrgVisible", nil)
+ if !models.HasOrgOrUserVisible(org, ctx.User) {
+ ctx.NotFound("HasOrgOrUserVisible", nil)
return
}