Closed dudunegrinhu closed 8 years ago
I'm adding this code to one of my form fields
'visible'=>Yii::$app->user->can('administrator'),
but it is not working. I need to show that field only for administrator. Notice that this code works for the Widget menu.
I'm adding this code to one of my form fields
'visible'=>Yii::$app->user->can('administrator'),
but it is not working. I need to show that field only for administrator. Notice that this code works for the Widget menu.