This commit is contained in:
Aevann1 2021-09-24 05:15:14 +02:00
parent 8ae337c8ec
commit 4423bd4de8
4 changed files with 5 additions and 11 deletions

View file

@ -58,11 +58,7 @@ def searchposts(v):
posts = g.db.query(Submission).options(
lazyload('*')
).join(
Submission.author
)
posts = g.db.query(Submission).options(lazyload('*'))
if not (v and v.admin_level == 6): posts = posts.filter(Submission.private == False)