forked from MarseyWorld/MarseyWorld
allow distinguishing other ppl's comments
parent
8b95a02ae4
commit
8dd9045a33
|
@ -1147,8 +1147,6 @@ def approve_post(post_id, v):
|
||||||
def distinguish_post(post_id, v):
|
def distinguish_post(post_id, v):
|
||||||
post = get_post(post_id)
|
post = get_post(post_id)
|
||||||
|
|
||||||
if post.author_id != v.id and v.admin_level < PERMS['POST_COMMENT_MODERATION']: abort(403)
|
|
||||||
|
|
||||||
if post.distinguish_level:
|
if post.distinguish_level:
|
||||||
post.distinguish_level = 0
|
post.distinguish_level = 0
|
||||||
kind = 'undistinguish_post'
|
kind = 'undistinguish_post'
|
||||||
|
@ -1340,8 +1338,6 @@ def admin_distinguish_comment(c_id, v):
|
||||||
|
|
||||||
comment = get_comment(c_id, v=v)
|
comment = get_comment(c_id, v=v)
|
||||||
|
|
||||||
if comment.author_id != v.id: abort(403)
|
|
||||||
|
|
||||||
if comment.distinguish_level:
|
if comment.distinguish_level:
|
||||||
comment.distinguish_level = 0
|
comment.distinguish_level = 0
|
||||||
kind = 'undistinguish_comment'
|
kind = 'undistinguish_comment'
|
||||||
|
|
Loading…
Reference in New Issue