diff options
author | 无闻 <joe2010xtmf@163.com> | 2014-09-16 07:29:03 -0400 |
---|---|---|
committer | 无闻 <joe2010xtmf@163.com> | 2014-09-16 07:29:03 -0400 |
commit | 5163d368e32c6cc363320dce99c64e832cef7a63 (patch) | |
tree | c22e3cc2882ba480d720f284662d4369ec27695d | |
parent | 41386fa91a5a4480aea95fa9687e3ce6f4a60c2f (diff) | |
parent | ad041167f7bcbc5a26a907b7bc43db2cb307e509 (diff) | |
download | gitea-5163d368e32c6cc363320dce99c64e832cef7a63.tar.gz gitea-5163d368e32c6cc363320dce99c64e832cef7a63.zip |
Merge pull request #474 from tobyzxj/dev
fix user's actions on domain/org/name-of-organization/dashboard
-rw-r--r-- | routers/user/home.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/user/home.go b/routers/user/home.go index bd33318d3c..372f111aec 100644 --- a/routers/user/home.go +++ b/routers/user/home.go @@ -94,7 +94,7 @@ func Dashboard(ctx *middleware.Context) { feeds := make([]*models.Action, 0, len(actions)) for _, act := range actions { if act.IsPrivate { - if has, _ := models.HasAccess(ctxUser.Name, act.RepoUserName+"/"+act.RepoName, + if has, _ := models.HasAccess(ctx.User.Name, act.RepoUserName+"/"+act.RepoName, models.READABLE); !has { continue } |