fds
This commit is contained in:
parent
8ae337c8ec
commit
4423bd4de8
4 changed files with 5 additions and 11 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue