forked from rDrama/rDrama
1
0
Fork 0

prevent the manlet from deleting his comments

master
Aevann1 2022-12-12 22:45:11 +02:00
parent feead592a4
commit 2b358ddcfc
1 changed files with 1 additions and 0 deletions

View File

@ -430,6 +430,7 @@ def edit_comment(cid, v):
@auth_required
@ratelimit_user()
def delete_comment(cid, v):
if v.id == 253: abort(403)
c = get_comment(cid, v=v)
if not c.deleted_utc:
if c.author_id != v.id: abort(403)