diff options
author | tobyzxj <toby.zxj@gmail.com> | 2014-09-16 16:20:32 +0800 |
---|---|---|
committer | tobyzxj <toby.zxj@gmail.com> | 2014-09-16 16:20:32 +0800 |
commit | ad041167f7bcbc5a26a907b7bc43db2cb307e509 (patch) | |
tree | c22e3cc2882ba480d720f284662d4369ec27695d /routers | |
parent | 41386fa91a5a4480aea95fa9687e3ce6f4a60c2f (diff) | |
download | gitea-ad041167f7bcbc5a26a907b7bc43db2cb307e509.tar.gz gitea-ad041167f7bcbc5a26a907b7bc43db2cb307e509.zip |
fix user's actions on domain/org/name-of-organization/dashboard
Diffstat (limited to 'routers')
-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 } |