1

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?

2 Answers 2

4

Perhaps?

Mage::getSingleton('admin/session')->getUser()->getRole();

0

Try this.

$id = Mage::getSingleton('admin/session')->getUser()->getId();
$roleData = Mage::getModel('admin/user')->load($id)->getRole()->getData();
var_dump($roleData);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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