Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I am trying to find a provision for checking out the privileges of current logged in user, I am able to get the data of current logged admin from session, but struggling to get the privileges it has, any suggestions?
$id = Mage::getSingleton('admin/session')->getUser()->getId();
$roleData = Mage::getModel('admin/user')->load($id)->getRole()->getData();
Required, but never shown