I need to set ACL permission for the tabs under sales order view

enter image description here

How can I do that?

1 Answer 1


Unfortunately those tabs are not real links with their own controller, but all loaded at once. So the usual _isAllowed() method in controllers cannot be used here.

But you can make the tabs use the ACL with a few rewrites:

  • Rewrite Mage_Adminhtml_Block_Sales_Order_View_Tab_Invoices and override the method canShowTab() as follows:

    public function canShowTab()
        return Mage::getSingleton('admin/session')->isAllowed('sales/invoice');
  • do the same for Mage_Adminhtml_Block_Sales_Order_View_Tab_Creditmemos and the other tab classes, and replace sales/invoice with sales/creditmemo etc.

Now users that are not allowed to access invoices won't see the invoices tab on the order page anymore either.

  • Yes, it worked.
    – Vigna S
    Sep 20, 2016 at 10:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.