forked from rDrama/rDrama
awards: don't allow users to award messages
parent
3f17624de6
commit
1608b3168a
|
@ -125,8 +125,11 @@ def buy(v, award):
|
||||||
@is_not_permabanned
|
@is_not_permabanned
|
||||||
@feature_required('AWARDS')
|
@feature_required('AWARDS')
|
||||||
def award_thing(v, thing_type, id):
|
def award_thing(v, thing_type, id):
|
||||||
if thing_type == 'post': thing = get_post(id)
|
if thing_type == 'post':
|
||||||
else: thing = get_comment(id)
|
thing = get_post(id)
|
||||||
|
else:
|
||||||
|
thing = get_comment(id)
|
||||||
|
if not thing.parent_submission: abort(404) # don't let users award messages
|
||||||
|
|
||||||
if v.shadowbanned: abort(500)
|
if v.shadowbanned: abort(500)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue