Commit a86913e45cec478ffb32a4ec251e18f2f5ac8976
1 parent
ce440bf9
-Remove delete comment button for managers
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
views/manage/index.php
@@ -98,7 +98,7 @@ | @@ -98,7 +98,7 @@ | ||
98 | return Html::a(Html::tag('i', '', [ 'class' => 'glyphicon glyphicon-bullhorn' ]), $url); | 98 | return Html::a(Html::tag('i', '', [ 'class' => 'glyphicon glyphicon-bullhorn' ]), $url); |
99 | }, | 99 | }, |
100 | ], | 100 | ], |
101 | - 'template' => '{update} {answer} {delete}', | 101 | + 'template' => \Yii::$app->user->identity->isAdmin() ? '{update} {answer} {delete}' : '{update} {answer}', |
102 | ], | 102 | ], |
103 | ], | 103 | ], |
104 | ] | 104 | ] |