suppose you create new supplier role from System > Permission
Now I will assign specific or limited resources to supplier role through some stuff.
suppose supplier id = 2
Any query about this Answer ask me ?
Now I will assign specific or limited resources to supplier role through some stuff.
suppose supplier id = 2
Mage::getModel('admin/rules') ->setRoleId(2) // 2 is supplier id ->setResources(array('admin/catalog','admin/catalog/products','admin/seller_dashboard','admin/system','admin/system/myaccount', 'admin/seller','admin/seller/orders','admin/seller/reviews')) ->saveRel();
Any query about this Answer ask me ?
No comments:
Post a Comment