diff --git a/src/calibre/srv/opds.py b/src/calibre/srv/opds.py index b9de203d25..e3bcb240a3 100644 --- a/src/calibre/srv/opds.py +++ b/src/calibre/srv/opds.py @@ -566,7 +566,7 @@ def opds_category(ctx, rd, category, which): q = category if q == 'news': q = 'tags' - ids = rc.db.get_books_for_category(q, which) + ids = rc.db.get_books_for_category(q, which) & rc.allowed_book_ids() sort_by = 'series' if category == 'series' else 'title' return get_acquisition_feed(rc, ids, offset, page_url, up_url, 'calibre-category:'+category+':'+unicode_type(which), sort_by=sort_by)