cancel
Showing results for 
Search instead for 
Did you mean: 

Roles aren't saved

Roles aren't saved

Hi guys!

I have an issue related with roles saving

It worked fine before the patches 5994 and 6285 have been installed

I can see the module in the admin panel and in the Role Resource Tab (System->Permissions->Roles), but when I tried to check the module and save the user role, it will say that it has been saved. But when I rechecked the user role, it is still unchecked.
As I can see there are several such LOCAL modules

As example, Marketplace,SeoRich,Easymaintanacne, QAAuth Authorized Tokens, SCp Module section

 

Rolling patches didn't resolve the issue
Could you please help me with it?
Thanks
cat app/Mage.php| grep -E '(major|minor|revision)' | grep -v patch
'major' => '1',
'minor' => '8',
'revision' => '1',


3 REPLIES 3

Re: Roles aren't saved

It seems issue of access rules after applying patch. Pl do add below code into your respected controller and check.

 

protected function _isAllowed()
{
    return true;
}

Actually  Mage_Adminhtml_Controller_Action::_isAllowed() has been changed from true to  Mage::getSingleton('admin/session')->isAllowed('admin').

 

Hope it helps you Smiley Happy

-
Magento Programmer | Was my answer helpful? You can accept it as a solution.

Re: Roles aren't saved

First of all thanks for the quick answer.
Unfortunatelly, I don't quite understand where I should add this code
It isn't clear for me
"add below code into your respected controller"
Could you please clarify this via step by step instruction
Thanks

Re: Roles aren't saved

I did changed in file app/code/core/Mage/Adminhtml/Controller/Action.php

from

 

 
protected function _isAllowed()
    {
    return Mage::getSingleton('admin/session')->isAllowed('admin');
    }

 

to

 

protected function _isAllowed()
{
    return true;
}


Deleted Magento cache and tried to save roles. Nothing has changed, have the same issue