Open GoogleCodeExporter opened 9 years ago
I came accross the same issue. So far I think this problem is related to the
use of the RUserBehaviour. It seems the Rights Module relies on this behaviour
to determine the username by attempting to add the getName() method to the user
model. When the column exists in the User model's table, the CActiveRecord's
automagic getter method seems to take precedence over the behaviour's getName()
method.
I was able to fix this problem by adding the method getRightsUserName to the
RUserBehaviour.php file on line 48:
public function getRightsUserName()
{
return $this->getName();
}
and replace:
$superusers[] = $user->name;
with:
$superusers[] = $user->rightsUserName;
in RAuthorizer.php on line 300
Original comment by lennart...@gmail.com
on 31 Mar 2012 at 10:39
[deleted comment]
[deleted comment]
Alternately, change $superusers[] = $user->name to whatever you have for
login_name like $user->login_name. It works.
Original comment by Aravinds...@gmail.com
on 24 May 2012 at 11:01
Original issue reported on code.google.com by
shayan3...@gmail.com
on 6 Mar 2012 at 11:12