From 3385d082b1bc8adf9baf71215134f41564bf1b6a Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 2 Sep 2021 00:47:16 +0200 Subject: [PATCH] fd --- files/routes/search.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/files/routes/search.py b/files/routes/search.py index a4c7d55bf..5c494e45c 100644 --- a/files/routes/search.py +++ b/files/routes/search.py @@ -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()