I am using the rights extension of Yii and get this error:
There must be at least one superuser!
I don't know what this superuser means since I am using the default authentication with user admin and demo. After reading the documentation of rights extension, I tried to configure rights with:
'rights'=>array(
'superuserName'=>'admin',
'install'=>true
),
But it doesn't work, I have searched the internet but got no result.
you need to connect the user table with a table AuthAssignment, whose name has been declared in the array setting
'modules'=>array(
'rights'=>array(
'superuserName'=>'admin',
),
),
then, you have to change the table AuthAssignment userid field that refer to field id on table user
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With