remotes/1693045480750635534/spooky-22
Aevann1 2021-10-08 17:11:22 +02:00
parent 05b6b8a0ea
commit cefb2cfad0
1 changed files with 2 additions and 4 deletions

View File

@ -767,11 +767,9 @@ def delete_comment(cid, v):
c = g.db.query(Comment).options(lazyload('*')).filter_by(id=cid).first()
if not c:
abort(404)
if not c: abort(404)
if not c.author_id == v.id:
abort(403)
if not c.author_id == v.id: abort(403)
c.deleted_utc = int(time.time())