Résolution souci de droits pour l'action actionCredit.master
@@ -40,7 +40,8 @@ class UserController extends BackendController | |||
'matchCallback' => function ($rule, $action) { | |||
if($action->actionMethod == 'actionIndex' || | |||
$action->actionMethod == 'actionCreate' || | |||
$action->actionMethod == 'actionUpdate') | |||
$action->actionMethod == 'actionUpdate' || | |||
$action->actionMethod == 'actionCredit') | |||
{ | |||
return Yii::$app->user->identity->status == USER::STATUS_ADMIN | |||
|| Yii::$app->user->identity->status == USER::STATUS_BOULANGER ; |