summaryrefslogtreecommitdiffstats
path: root/routers/user
diff options
context:
space:
mode:
Diffstat (limited to 'routers/user')
-rw-r--r--routers/user/home.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/routers/user/home.go b/routers/user/home.go
index ce82ae772c..35407534f9 100644
--- a/routers/user/home.go
+++ b/routers/user/home.go
@@ -210,8 +210,11 @@ func Profile(ctx *middleware.Context) {
if !ctx.IsSigned {
continue
}
- if has, _ := models.HasAccess(ctx.User, &models.Repository{Id: act.RepoId, IsPrivate: true},
- models.ACCESS_MODE_READ); !has {
+ if has, _ := models.HasAccess(ctx.User,
+ &models.Repository{
+ Id: act.RepoId,
+ IsPrivate: true,
+ }, models.ACCESS_MODE_READ); !has {
continue
}
}