Hello. I installed yii-rights, which created 4 db tables: AuthAssignment, AuthItem, AuthItemChild, Rights. First 3 dbtables: AuthAssignment, AuthItem, AuthItemChild are populated with data, but last table: Rights is always blank. Is this normal situation?

1. First of all, you must configure authentication using a database. You must configure the creation, deletion user using the database, as well as the login to the site. The users table must be named 'users'.
I use a table users like this:

1. First of all, you must configure authentication using a database. You must configure the creation, deletion user using the database, as well as the login to the site. The users table must be named 'users'.
I use a table users like this:

I'm quite new to Yii, so I hope I haven't overlooked something simple and obvious through my searching of documentation.
I believe rights was successfully installed on my machine (I can add things, and they are populated in my database...). The problem is that the authorization seems to be failing. I believe this is due to the fact that Yii doesn't think the admin user is actually a superuser.
I've attached screen shots of code that displays if the logged in user isSuperuser and a dump of the array supeusers from the rights module.

Can anyone explain why rights has the superusers in it's array, yet the logged in user is not set to superuser? Also, I'm logged in as 'kirk' and thus have access to 'rights' but no other page...

Controllers filters are set to 'rights'. Controllers are extending RController. I only have the rights module (no yii users extension).

If more info is required, I'll be more than happy to give you more. Thanks in advance!

Also, I'm using Yii 1.1.13. (Although I'm certain this is not part of the issue as the blog demo runs correctly using the same yii framework...).

<------------------------->
Solved it. It was an error in the database and Yii configuration. Yii was using a column (username) to assign the user->id verses rights using the column user_id. Once I created my own _id and assigned it the correct id and fixed the columns in my database it worked.

Using Yii-rights + Yii-user module in my project. In Rights, I generated operations based on my controller action, under update I added a child UpdateOwn.

For UpdateOwn, the bizrule is suppose to be a simple comparison that the logged in user's ID is equal to $model->user_id field.

I understand yii checkaccess allow you to pass in variables as parameters and comparing with your defined bizrule. But how does it work for Yii-rights module? How or what are the data/params passed in to be used in bizrule? How can I define or pass my own data/params?

I have restructured my application to use nested modules (ie. /backend/administration/category/) Administration is a sub module of Backend. Category is a Controller.
When I "Generate controller actions" it creates "Administration.Category.*", however when I try to grant access to this permission to a role, I get a 403.
Is there any issues in using nested modules, and Yii rights?
Thanks!
----
UPDATE:
Ok, I've just run some tests.. I've looked into RightsFilter.php, and the preFilter() function. $authItem, which is derived from "ucfirst($controller->id);" returns "Backend/administration.Category".
When the controller items are generated, it generates Administration.Category.*.
So the Administration module (child to "Backend") is being incorporated into the controller name.
Is this me doing something wrong??
Does anyone have any suggestions on how to elegantly fix this?
Cheers
Dan
---
UPDATE 2:
I've modified the rules by changing it from "Administration.Controller.*", to be "Backend/administration.Controller.*", which is working.
However I feel I may have done something wrong? Does anyone else have this issue? Or a solution to this issue?