Magento get admin user role
Magento get admin user role – You can get admin user role by using admin user model ie. Mage::getModel(‘admin/user’). Here we have explained how to get role of admin user in magento.
Magento get admin user role
Here is simple syntax to get admin user role in magento-
Magento get admin user role
$adminSession = Mage::getSingleton('admin/session'); $adminuserId = $adminSession->getUser()->getUserId(); $roleData = Mage::getModel('admin/user')->load($adminuserId)->getRole()->getData(); $roleName = $roleData['role_name']; |
Advertisements