Ver código fonte

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.
master
keun 8 anos atrás
pai
commit
e26d8efa1e
1 arquivos alterados com 2 adições e 1 exclusões
  1. +2
    -1
      backend/controllers/UserController.php

+ 2
- 1
backend/controllers/UserController.php Ver arquivo

@@ -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 ;

Carregando…
Cancelar
Salvar