master
Aevann1 2021-09-02 00:47:16 +02:00
parent abd53ef4b9
commit 3385d082b1
1 changed files with 3 additions and 1 deletions

View File

@ -38,7 +38,9 @@ def searchlisting(criteria, v=None, page=1, t="None", sort="top", b=None):
Submission.submission_aux,
).join(
Submission.author
).filter_by(private=false)
)
if not (v and v.admin_level == 6): posts = posts.filter_by(private=false)
if 'q' in criteria:
words=criteria['q'].split()