forked from MarseyWorld/MarseyWorld
editing posts to JL3 (will be constantified soon)
parent
04f24cd8fd
commit
0dfff1f4f6
|
@ -378,7 +378,7 @@ def edit_post(pid, v):
|
||||||
|
|
||||||
body = sanitize_raw_body(request.values.get("body", ""))
|
body = sanitize_raw_body(request.values.get("body", ""))
|
||||||
|
|
||||||
if v.id != p.author_id and v.admin_level < PERMS['POST_COMMENT_MODERATION']:
|
if v.id != p.author_id and v.admin_level < 3:
|
||||||
abort(403)
|
abort(403)
|
||||||
|
|
||||||
if v.id == p.author_id:
|
if v.id == p.author_id:
|
||||||
|
|
Loading…
Reference in New Issue