We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b6c910 commit 643b31bCopy full SHA for 643b31b
widgets/views/_list.php
@@ -27,7 +27,7 @@
27
<?php echo Html::a($model->getPostedDate(), $model->getAnchorUrl(), ['class' => 'comment-date']); ?>
28
</div>
29
<div class="comment-body">
30
- <?php if (Yii::$app->getModule('comment')->enableInlineEdit): ?>
+ <?php if (Yii::$app->getModule('comment')->enableInlineEdit && Yii::$app->getUser()->can('admin')): ?>
31
<?php echo Editable::widget([
32
'model' => $model,
33
'attribute' => 'content',
0 commit comments