1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

Ensure that feeds are appropriately restricted (#10018) (#10019)

* Ensure that feeds are appropriately restricted

* Placate golangci-lint
This commit is contained in:
zeripath
2020-01-28 21:54:09 +00:00
committed by Lauris BH
parent 4b11f967bd
commit 895d92ffe5
4 changed files with 38 additions and 7 deletions

View File

@@ -432,6 +432,8 @@ func GetFeeds(opts GetFeedsOptions) ([]*Action, error) {
}
cond = cond.And(builder.In("repo_id", repoIDs))
} else {
cond = cond.And(builder.In("repo_id", AccessibleRepoIDsQuery(opts.RequestingUserID)))
}
cond = cond.And(builder.Eq{"user_id": opts.RequestedUser.ID})