Well,i’ve debugged extensively and couldn’t find the cause.
<?php
$us = new RWebUser();
echo $us->getId();
if (Rights::getAuthorizer()->isSuperuser($us->getId()) === true)
die($us->getName());
?>
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.