Closed gabriele-carbonai closed 7 years ago
Hello I add this code in backend/config/main.php
'controllerMap' => [ 'admin' => 'cinghie\yii2userextended\controllers\AdminController', 'settings' => 'cinghie\yii2userextended\controllers\SettingsController', ],
now the admin page is forbidden, without controllerMap I can have access to the page and manage users, but without extended module, that mean without name, surname etc.. how can I do?
this is all backend module
'user' => [ 'as backend' => 'dektrium\user\filters\BackendFilter', 'class' => 'dektrium\user\Module', 'cost' => 34, 'admins' => ['admin'], 'enableRegistration' => false, 'controllerMap' => [ 'admin' => 'cinghie\yii2userextended\controllers\AdminController', 'settings' => 'cinghie\yii2userextended\controllers\SettingsController', ], // Yii2 User Models Overrides 'modelMap' => [ 'Profile' => 'cinghie\yii2userextended\models\Profile', 'SettingsForm' => 'cinghie\yii2userextended\models\SettingsForm', 'User' => 'cinghie\yii2userextended\models\User', ], ], 'userextended' => [ 'class' => 'cinghie\yii2userextended\Module', 'avatarPath' => '@webroot/img/users/', // Path to your avatar files 'avatarURL' => '@web/img/users/', // Url to your avatar files 'showTitles' => false, // Set false in adminLTE ], 'rbac' => 'dektrium\rbac\RbacWebModule',
Hi @gomonkey,
check if your user have 'admin' rule that is required to access the view
Hello I add this code in backend/config/main.php
now the admin page is forbidden, without controllerMap I can have access to the page and manage users, but without extended module, that mean without name, surname etc.. how can I do?
this is all backend module