fsd
This commit is contained in:
parent
d9a58c8fd5
commit
e012c17856
2 changed files with 8 additions and 5 deletions
|
@ -261,7 +261,8 @@ def post_id(pid, anything=None, v=None, sub=None):
|
|||
@limiter.limit("1/second;30/minute;200/hour;1000/day")
|
||||
@auth_desired
|
||||
def viewmore(v, pid, sort, offset):
|
||||
pid = int(pid)
|
||||
try: pid = int(pid)
|
||||
except: abort(400)
|
||||
post = get_post(pid, v=v)
|
||||
if post.club and not (v and (v.paid_dues or v.id == post.author_id)): abort(403)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue