mdmsoft / yii2-admin

Auth manager for Yii2 (RBAC Manager)
GNU General Public License v3.0
1.16k stars 577 forks source link

all forbidden after installation #25

Closed paskuale75 closed 10 years ago

paskuale75 commented 10 years ago

Hi thanks for this module, after install it all my pages are forbidden (#403) why ?

mdmunir commented 10 years ago

set allowActions as '*' or remove admin from bootstrap. Go to admin page then assign role for the user.

'modules' => [
        'admin' => [
            'class' => 'mdm\admin\Module',
            'allowActions' => [
                '*'
            ]
        ]
        ...
    ],
paskuale75 commented 10 years ago

Yes now work it, how can set default role, after installation ? Example for set all new users as "GENERIC USER" (Role) ?

thanks

2014-07-03 19:13 GMT+02:00 MDMunir notifications@github.com:

set allowActions as '*' or remove admin from bootstrap. Go to admin page then assign role for the user.

'modules' => [ 'admin' => [ 'class' => 'mdm\admin\Module', 'allowActions' => [ '*' ] ] ... ],

— Reply to this email directly or view it on GitHub https://github.com/mdmsoft/yii2-admin/issues/25#issuecomment-47958068.

Pasquale Pellicani http://www.paskuale.it http://www.linkedin.com/pub/pasquale-pellicani/51/979/63 http://www.riabsystem.it

mdmunir commented 10 years ago

at your authManager::defaultRoles config.

'authManager' => [
    'class' => 'yii\rbac\PhpManager', // or yii\rbac\DbManager
    'defaultRoles' => ['generic_user']
]
realtebo commented 10 years ago

Please, add all of this things to documentation !