Commit 9eaaca9dc5ac848bebb214864803d0b37f1f765c
1 parent
cd6a0e39
image size
Showing
3 changed files
with
7 additions
and
4 deletions
Show diff stats
backend/config/main.php
@@ -64,7 +64,9 @@ return [ | @@ -64,7 +64,9 @@ return [ | ||
64 | ] | 64 | ] |
65 | ], | 65 | ], |
66 | 'components' => [ | 66 | 'components' => [ |
67 | - | 67 | + 'authManager' => [ |
68 | + 'class' => 'yii\rbac\DbManager', | ||
69 | + ], | ||
68 | 'user' => [ | 70 | 'user' => [ |
69 | 'identityClass' => 'common\models\User', | 71 | 'identityClass' => 'common\models\User', |
70 | 'enableAutoLogin' => true, | 72 | 'enableAutoLogin' => true, |
common/config/main.php
frontend/config/main.php
@@ -12,6 +12,9 @@ return [ | @@ -12,6 +12,9 @@ return [ | ||
12 | 'bootstrap' => ['log'], | 12 | 'bootstrap' => ['log'], |
13 | 'controllerNamespace' => 'frontend\controllers', | 13 | 'controllerNamespace' => 'frontend\controllers', |
14 | 'components' => [ | 14 | 'components' => [ |
15 | + 'authManager' => [ | ||
16 | + 'class' => 'yii\rbac\DbManager', | ||
17 | + ], | ||
15 | 'user' => [ | 18 | 'user' => [ |
16 | 'identityClass' => 'common\models\Customer', | 19 | 'identityClass' => 'common\models\Customer', |
17 | 'enableAutoLogin' => true, | 20 | 'enableAutoLogin' => true, |