allow user delete own comment if have no child

This commit is contained in:
ArenMg 2021-06-16 14:20:02 +03:00
parent 53e92e0700
commit 6c89f25470

View file

@ -49,7 +49,7 @@
<button
v-if="
($root.user.is('ADMIN') || $root.user.is('MODO')) &&
($root.user.is('ADMIN') || $root.user.is('MODO') || (comment.owner.id == $root.user.id) ) &&
comment.comments.length < 1
"
title="Supprimer le commentaire"