Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Access control to controllers
 
centerax
Sr. Member
 
Avatar
Total Posts:  90
Joined:  2008-09-10
Montevideo, Uruguay
 

Hello,
I’ve made a module and I’ ve two controllers, one for the admin and the other for the frontend.
The question is: How can I tell to Magento that one controller can be accessed by a user that is not logged at the admin panel?

Thanks!

 
Magento Community Magento Community
Magento Community
Magento Community
 
vianetz
Guru
 
Avatar
Total Posts:  537
Joined:  2008-04-13
Munich, Germany
 

What do you mean with “not logged at the admin panel”?

If you mean the frontend then it’s enough to use the extend functionality of classes in php.

 
Magento Community Magento Community
Magento Community
Magento Community
 
centerax
Sr. Member
 
Avatar
Total Posts:  90
Joined:  2008-09-10
Montevideo, Uruguay
 

I ‘ ve a two controllers at my custom module, one is for the administration and one for the frontend but both are in the same module, so I cant acces the frontend controller because I’ve set acl permissions for the whole module, I want to set permissions for that controller so it becomes accesible from the frotend

 
Magento Community Magento Community
Magento Community
Magento Community
 
centerax
Sr. Member
 
Avatar
Total Posts:  90
Joined:  2008-09-10
Montevideo, Uruguay
 

Ok, I’ve figured it out, just extending Mage_Core_Controller_Front_Action instead of Mage_Adminhtml_Controller_Action.

wink

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top