summaryrefslogtreecommitdiffstats
path: root/routers/user
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2015-02-13 00:58:46 -0500
committerUnknwon <joe2010xtmf@163.com>2015-02-13 00:58:46 -0500
commit6d0f3a07d4fa3189b0b7c4e366bddb6d72ef7e68 (patch)
tree02b1617a75095fe5f072533708e920fbac477d34 /routers/user
parentb99c4baab22ec080906582703809e5ec12bae3f9 (diff)
downloadgitea-6d0f3a07d4fa3189b0b7c4e366bddb6d72ef7e68.tar.gz
gitea-6d0f3a07d4fa3189b0b7c4e366bddb6d72ef7e68.zip
code fix #941 caution: undertest
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
}
}