Go [[step_4_-_setting_and_using_amnah_yii2_permissions|back]]\\

There is a big green ''Create Guitars'' button in the list view.\\
Make it only appear for the admin user.
So in ''/views/guitars/index.php'' modify as so
<code php>
    <?php
        if (Yii::$app->user->can("admin")) {
    ?>
    <p>
        <?= Html::a('Create Guitars', ['create'], ['class' => 'btn btn-success']) ?>
    </p>
    <?php } ?>

</code>

Back to [[yii|Yii Main Index]]