forked from rDrama/rDrama
gzu
parent
aa300641af
commit
1d7f67b444
|
@ -52,6 +52,9 @@ def searchlisting(criteria, v=None, page=1, t="None", sort="top", b=None):
|
||||||
posts = posts.filter(Submission.over_18==True)
|
posts = posts.filter(Submission.over_18==True)
|
||||||
|
|
||||||
if 'author' in criteria:
|
if 'author' in criteria:
|
||||||
|
if v and v.admin_level == 6:
|
||||||
|
posts = posts.filter(Submission.author_id == get_user(criteria['author']).id)
|
||||||
|
else:
|
||||||
posts=posts.filter(
|
posts=posts.filter(
|
||||||
Submission.author_id==get_user(criteria['author']).id,
|
Submission.author_id==get_user(criteria['author']).id,
|
||||||
User.is_private==False,
|
User.is_private==False,
|
||||||
|
|
Loading…
Reference in New Issue