Résolution d'un souci de droit sur la page listant les mails utilisateurs. Les boulangers n'y avaient pas accès.prodstable
@@ -41,7 +41,8 @@ class UserController extends BackendController | |||
if($action->actionMethod == 'actionIndex' || | |||
$action->actionMethod == 'actionCreate' || | |||
$action->actionMethod == 'actionUpdate' || | |||
$action->actionMethod == 'actionCredit') | |||
$action->actionMethod == 'actionCredit' || | |||
$action->actionMethod == 'actionMail') | |||
{ | |||
return Yii::$app->user->identity->status == USER::STATUS_ADMIN | |||
|| Yii::$app->user->identity->status == USER::STATUS_BOULANGER ; |