fix minor chud evasion exploit

master
Aevann 2023-03-25 20:18:12 +02:00
parent 712c30fe84
commit 3b7569745e
1 changed files with 3 additions and 2 deletions

View File

@ -1034,8 +1034,9 @@ def edit_post(pid, v):
p.body_html = body_html
if not complies_with_chud(p):
abort(403, f'You have to include "{v.agendaposter_phrase}" in your post!')
if not complies_with_chud(p):
abort(403, f'You have to include "{v.agendaposter_phrase}" in your post!')
if v.id == p.author_id: