Browse Source

Backend : droits liste de mails

Résolution d'un souci de droit sur la page listant les mails utilisateurs. 
Les boulangers n'y avaient pas accès.
prodstable
keun 8 years ago
parent
commit
e26d8efa1e
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      backend/controllers/UserController.php

+ 2
- 1
backend/controllers/UserController.php View File

if($action->actionMethod == 'actionIndex' || if($action->actionMethod == 'actionIndex' ||
$action->actionMethod == 'actionCreate' || $action->actionMethod == 'actionCreate' ||
$action->actionMethod == 'actionUpdate' || $action->actionMethod == 'actionUpdate' ||
$action->actionMethod == 'actionCredit')
$action->actionMethod == 'actionCredit' ||
$action->actionMethod == 'actionMail')
{ {
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 ;

Loading…
Cancel
Save