mirror of
https://github.com/ArenMg/aren.git
synced 2024-11-21 16:10:52 +00:00
allow user delete own comment if have no child
This commit is contained in:
parent
53e92e0700
commit
6c89f25470
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@
|
||||||
|
|
||||||
<button
|
<button
|
||||||
v-if="
|
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
|
comment.comments.length < 1
|
||||||
"
|
"
|
||||||
title="Supprimer le commentaire"
|
title="Supprimer le commentaire"
|
||||||
|
|
Loading…
Reference in a new issue