From 179a0e00fef5ef2ad34da6d191dd61babc2077c7 Mon Sep 17 00:00:00 2001 From: stes Date: Fri, 1 Sep 2017 16:02:25 +0300 Subject: [PATCH] bug fix artbox-comment --- views/artbox_comment_item.php | 8 ++++---- views/artbox_comment_list.php | 8 ++++++-- widgets/CommentWidget.php | 13 ++++++++++++- 3 files changed, 22 insertions(+), 7 deletions(-) diff --git a/views/artbox_comment_item.php b/views/artbox_comment_item.php index 678ea69..76457c0 100755 --- a/views/artbox_comment_item.php +++ b/views/artbox_comment_item.php @@ -56,7 +56,7 @@
user->isGuest) { + if (!\Yii::$app->user->isGuest && $reply) { ?> user->isGuest && \Yii::$app->user->id == $model->customer_id) { + if (!\Yii::$app->user->isGuest && \Yii::$app->user->id == $model->customer_id && $delete) { ?> user->isGuest) { + if (!\Yii::$app->user->isGuest && $reply) { ?> user->isGuest && \Yii::$app->user->id == $child->customer_id) { + if (!\Yii::$app->user->isGuest && \Yii::$app->user->id == $child->customer_id && $delete) { ?>