Access Rights Module Return 403 Not Allowed

Well,i’ve debugged extensively and couldn’t find the cause.


                            $us = new RWebUser();

                            echo $us->getId();

                            if (Rights::getAuthorizer()->isSuperuser($us->getId()) === true)



this return 1 Admin , that means the user is superUser but when try to access Rights i get not authorized error.

I’m using yii-user and rights. Yii-user works fine.

Any clue about this?

Thanks in advance.

ok,find the problem.

Username column of rights was set to email.