Browse Source

Crédit pain : créditer un utilisateur

Résolution souci de droits pour l'action actionCredit.
prodstable
keun 8 years ago
parent
commit
20e71e6762
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      backend/controllers/UserController.php

+ 2
- 1
backend/controllers/UserController.php View 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…
Cancel
Save