1
0
mirror of https://tt-rss.org/git/tt-rss.git synced 2024-06-23 11:46:37 +02:00

cats_of: enforce owner_uid

This commit is contained in:
Andrew Dolgov 2021-02-24 10:09:08 +03:00
parent 6ea1430a04
commit e468e5a589

View File

@ -1798,8 +1798,8 @@ class Feeds extends Handler_Protected {
$sth = $pdo->prepare("SELECT DISTINCT cat_id, fc.parent_cat FROM ttrss_feeds f LEFT JOIN ttrss_feed_categories fc
ON (fc.id = f.cat_id)
WHERE f.id IN ($feeds_qmarks)");
$sth->execute($feeds);
WHERE f.owner_uid = ? AND f.id IN ($feeds_qmarks)");
$sth->execute(array_merge([$owner_uid], $feeds));
$rv = [];