mirror of
https://gitlab.com/SIGBUS/nyaa.git
synced 2024-12-22 08:10:03 +00:00
search: allow admins to ignore the max page limit (#589)
This commit is contained in:
parent
5da7635164
commit
611f0c5706
|
@ -379,7 +379,7 @@ def search_db(term='', user=None, sort='id', order='desc', category='0_0',
|
||||||
same_user = logged_in_user.id == user
|
same_user = logged_in_user.id == user
|
||||||
|
|
||||||
# Logged in users should always be able to view their full listing.
|
# Logged in users should always be able to view their full listing.
|
||||||
if same_user:
|
if same_user or admin:
|
||||||
MAX_PAGES = 0
|
MAX_PAGES = 0
|
||||||
|
|
||||||
if MAX_PAGES and page > MAX_PAGES:
|
if MAX_PAGES and page > MAX_PAGES:
|
||||||
|
|
Loading…
Reference in a new issue