From ad041167f7bcbc5a26a907b7bc43db2cb307e509 Mon Sep 17 00:00:00 2001 From: tobyzxj Date: Tue, 16 Sep 2014 16:20:32 +0800 Subject: [PATCH] fix user's actions on domain/org/name-of-organization/dashboard --- routers/user/home.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/user/home.go b/routers/user/home.go index bd33318d..372f111a 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 }