yii2mod / yii2-comments

Comments module for Yii2
MIT License
158 stars 63 forks source link

comment/manage Forbidden (#403) #68

Closed koquipizzi closed 7 years ago

koquipizzi commented 7 years ago

I am using mdmsoft in order to adminitrate the accesses rules and I can not access to the comment admin.

I have

'admin' => [
           'class' => 'mdm\admin\Module',
           'layout' => 'left-menu', // defaults to null, using the application's layout without the menu
        ],

and

'authManager' => [
             'class' => 'yii\rbac\DbManager', 
        ],

What I should do for fix it? Thanks!

ihorchepurnyi commented 7 years ago

If you are logged in as user with admin role, then you don't need to assign route. Also, you can override access control configuration

ihorchepurnyi commented 7 years ago

Which role assigned to your user?

koquipizzi commented 7 years ago

Hi Igor, Great! I am using another role, so.. I changed the access control configuration. Have a nice day!

ihorchepurnyi commented 7 years ago

Cool, have a nice day!