|
|
|
|
|
|
|
|
'matchCallback' => function ($rule, $action) { |
|
|
'matchCallback' => function ($rule, $action) { |
|
|
if($action->actionMethod == 'actionIndex' || |
|
|
if($action->actionMethod == 'actionIndex' || |
|
|
$action->actionMethod == 'actionCreate' || |
|
|
$action->actionMethod == 'actionCreate' || |
|
|
$action->actionMethod == 'actionUpdate') |
|
|
|
|
|
|
|
|
$action->actionMethod == 'actionUpdate' || |
|
|
|
|
|
$action->actionMethod == 'actionCredit') |
|
|
{ |
|
|
{ |
|
|
return Yii::$app->user->identity->status == USER::STATUS_ADMIN |
|
|
return Yii::$app->user->identity->status == USER::STATUS_ADMIN |
|
|
|| Yii::$app->user->identity->status == USER::STATUS_BOULANGER ; |
|
|
|| Yii::$app->user->identity->status == USER::STATUS_BOULANGER ; |