Rights::assign('parent', $user->id);this is not only giving "parent" role but also giving all the roles to the user.
any solution?
Posted 30 October 2012 - 12:46 AM
Rights::assign('parent', $user->id);
Posted 30 October 2012 - 12:50 AM
$authorizer = Yii::app()->getModule("rights")->getAuthorizer();
$authorizer->authManager->assign('parent', $user->id);
Posted 10 April 2013 - 04:54 AM