Created
January 25, 2014 15:56
-
-
Save xcommerce-gists/8618468 to your computer and use it in GitHub Desktop.
Sample Magento administrative helper class
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* News Admin helper | |
* | |
* @author Magento | |
*/ | |
class Magentostudy_News_Helper_Admin extends Mage_Core_Helper_Abstract | |
{ | |
/** | |
* Check permission for passed action | |
* | |
* @param string $action | |
* @return bool | |
*/ | |
public function isActionAllowed($action) | |
{ | |
return Mage::getSingleton('admin/session')->isAllowed('news/manage/' . $action); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment