mirror of
https://github.com/go-gitea/gitea
synced 2024-11-14 01:35:54 +01:00
fix user's actions on domain/org/name-of-organization/dashboard
This commit is contained in:
parent
41386fa91a
commit
ad041167f7
@ -94,7 +94,7 @@ func Dashboard(ctx *middleware.Context) {
|
|||||||
feeds := make([]*models.Action, 0, len(actions))
|
feeds := make([]*models.Action, 0, len(actions))
|
||||||
for _, act := range actions {
|
for _, act := range actions {
|
||||||
if act.IsPrivate {
|
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 {
|
models.READABLE); !has {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user