Hi Spyros, THANKS a lot for your work, you save as a lot of time!
Is there a way, maybe without touching the tables by sql, to assign a roll to a user? in this case what I want is to assign a default roll to new users.
Thanks
Juan
Hi Spyros, THANKS a lot for your work, you save as a lot of time!
Is there a way, maybe without touching the tables by sql, to assign a roll to a user? in this case what I want is to assign a default roll to new users.
Thanks
Juan
Hi, I finally did this, do you think is the right way?
protected function afterSave()
{
$auth = Yii::app()->authManager;
$auth->assign('userRol', $this->username);
$auth->save();
parent::afterSave();
}
Thanks
I think this should work
Thanks!