Sfoglia il codice sorgente

Crédit pain : créditer un utilisateur

Résolution souci de droits pour l'action actionCredit.
master
keun 8 anni fa
parent
commit
20e71e6762
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. +2
    -1
      backend/controllers/UserController.php

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

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

Loading…
Annulla
Salva