php - Access Denied after applying Magento SUPEE 6285 -
i applied magento patch supee-6285 , having permissions issues non-admin users. sections of admin accessible limited users no longer accessible. if @ role resources role see section enabled and, when logged role see menu option, if pick access denied. 3 extensions know of far giving me trouble are
- commerce themes - guess registered customer
- they add "manage guest reg" under "customers" menu
- adjustware - abandoned cart alerts
- they add menu items under newsletter
- adjustware - review reminders
- they add menu items under newsletter
i'm sure there other extensions similar problems, , it's due how implemented admin pages, haven't been able figure out yet. have fix?
update tried changing how router defined, didn't help.
was:
<admin> <routers> <guesttoreg> <use>admin</use> <args> <module>commercethemes_guesttoreg</module> <frontname>guesttoreg</frontname> </args> </guesttoreg> </routers> </admin>
changed to:
<admin> <routers> <adminhtml> <args> <modules> <guesttoreg after="mage_adminhtml">commercethemes_guesttoreg_adminhtml</guesttoreg> </modules> </args> </adminhtml> </routers> </admin>
thanks ron v able find full answer enables menu permission.
given following adminhtml.xml file:
<config> <acl> <resources> <admin> <children> <path_to> <children> <acl_resource> <title>my acl resource</title> </acl_resource> </children> </path_to> </children> </admin> </resources> </acl> </config>
you can extract resource path pass isallowed()
determine if menu should shown user.
protected function _isallowed(){ return mage::getsingleton('admin/session')->isallowed('path_to/acl_resource'); }
Comments
Post a Comment