Skip to content

Commit

Permalink
update inline edit
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-chepurnoi committed Apr 27, 2017
1 parent 0b6c910 commit 643b31b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion widgets/views/_list.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<?php echo Html::a($model->getPostedDate(), $model->getAnchorUrl(), ['class' => 'comment-date']); ?>
</div>
<div class="comment-body">
<?php if (Yii::$app->getModule('comment')->enableInlineEdit): ?>
<?php if (Yii::$app->getModule('comment')->enableInlineEdit && Yii::$app->getUser()->can('admin')): ?>
<?php echo Editable::widget([
'model' => $model,
'attribute' => 'content',
Expand Down

0 comments on commit 643b31b

Please sign in to comment.