fd
This commit is contained in:
parent
b644967a6c
commit
d1cc45a70a
1 changed files with 3 additions and 1 deletions
|
@ -38,7 +38,9 @@ def searchlisting(criteria, v=None, page=1, t="None", sort="top", b=None):
|
||||||
Submission.submission_aux,
|
Submission.submission_aux,
|
||||||
).join(
|
).join(
|
||||||
Submission.author
|
Submission.author
|
||||||
).filter_by(private=false)
|
)
|
||||||
|
|
||||||
|
if not (v and v.admin_level == 6): posts = posts.filter_by(private=false)
|
||||||
|
|
||||||
if 'q' in criteria:
|
if 'q' in criteria:
|
||||||
words=criteria['q'].split()
|
words=criteria['q'].split()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue