crisu83 / yii-rights

Automatically exported from code.google.com/p/yii-rights
BSD 3-Clause "New" or "Revised" License
2 stars 4 forks source link

Superusers not found #60

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. use a user mapper with string id (unique email or such)
2. try to log in rights module
3. could not get logged in, says : there must be at least 1 superuser!

What is the expected output? What do you see instead?
Expected behaviour is to have access to Rights when there is an entry
made like this in 
itemname  |userid 
Admin     |someguy@example.com  

What version of the product are you using? On what operating system?
CentOS 6, PHP5.3.3, MySQL
Yii version 1.1
Rights version 1.3.0

Please provide any additional information below.
I could solve the problem by changing this line :
'users'=>$this->_authorizer->getSuperusers(),
to this line :
'roles'=>array('Rights::module()->superuserName'),

in Controllers files, now skipping getSuperusers() that seems
to have troubles with dealing with string key.

Original issue reported on code.google.com by tanguay....@gmail.com on 7 Sep 2011 at 6:33