mirror of
https://gitee.com/gitea/gitea
synced 2025-12-25 01:36:34 +08:00
* Ensure that feeds are appropriately restricted * Placate golangci-lint
This commit is contained in:
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user