Browse Source

Merge pull request #474 from tobyzxj/dev

fix user's actions on domain/org/name-of-organization/dashboard
for-closed-social
无闻 10 years ago
parent
commit
5163d368e3
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      routers/user/home.go

+ 1
- 1
routers/user/home.go View File

@ -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
}

Loading…
Cancel
Save