If it doesn’t work, try to debug your app or, even simpler, put something like die(var_dump($params[‘company’])) inside the bizrule. I have done some fast tests this way and I could find the params are received ok.
Just one more point: maybe you have some accessRules in your controller conflicting your rights filter. Check that or try to remove it to make some tests.
I am using the RController to make the things easier so that i dont need to checkAccess() in everywhere. But i have some situations that i need to get params from action to check permissions.
The question is: how can i send those params to checkAccess() if the filter of righst is runned before my action itself? The filter makes the checkAcces return false cause the params are not setted.
What am I doing wrong? How do you acomplish this type of task?
— Edit: —
I know if I dont use RController, all the checkAccess() would have to be by my account. But i would like to know how to use both. It would make the things so easier.
I often encounter Rights error and forget how to fix it although I ever solved it before. And everytime I search in the forum, it is far more difficult. Why? Because this thread always keep growing Well that’s a good sign because it means a lot of people using Rights doesn’t it?
But it is not good for me when I am encounter old problem
So, I decided to create a wiki to collect all the common problems usually we encountered in Rights extension. This way a Rights newbie user or me can easily find the solution for common problem. I am in the middle gathering the solutions, feel free to take a look. Thank you.
I’ve been trying to make Yum and Rights work together for the last 4 days. I’ve managed to get both of them working by themselves, but never together completely.
So I would appreciate any help I can get on how to configurate Yum to make it work with the rights rbac module.
This is the only thing I’ve managed to trace down myself, Yum wants me to use this setting:
But rights demands that I use ‘class’=>‘RWebUser’;
I suspect there is more things that has to be modified but I’m not experienced enough to figure it out,only used yii for a couple of weeks, don’t know so much about how it works.
I’ve heard about people using both so I know it is Possible but cannot find a step-for-step guide, only solutions for one or two problems.
(it would be so amazing with a blog demo with both installed).
I want to setup rights module inside another module.In my project two type of users, guests and system administrators. I developed system administration as a separate module and want to setup "rights" module inside it.Does any one done such thing before, or is there any post regarding it.Your help is very much appreciated.
Hi everyone. I have pretty much the same problem as this one http://www.yiiframework.com/forum/index.php?/topic/10556-extension-rights/page__view__findpost__p__79125. I want do dynamically assign access to the rights module itself. In the link it says I should create Operation/Tasks for rights. However it seems that right itself doesn’t use these access methods at all, because when I look at AssignmentController the filters() method says “accessControl” and not “rights”.
This applies for both projects so I feel pretty sure it has to be something related to the conditions above…
I’ve looked thrue the rights files but no where have I been able to find a case sensetive issue or url problem. But my knowledge on what could cause this behaviour is extremely limited…