Skip to content

Commit 643b31b

Browse files
author
igor-chepurnoi
committed
update inline edit
1 parent 0b6c910 commit 643b31b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

widgets/views/_list.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<?php echo Html::a($model->getPostedDate(), $model->getAnchorUrl(), ['class' => 'comment-date']); ?>
2828
</div>
2929
<div class="comment-body">
30-
<?php if (Yii::$app->getModule('comment')->enableInlineEdit): ?>
30+
<?php if (Yii::$app->getModule('comment')->enableInlineEdit && Yii::$app->getUser()->can('admin')): ?>
3131
<?php echo Editable::widget([
3232
'model' => $model,
3333
'attribute' => 'content',

0 commit comments

Comments
 (0)