i install rights module to my site
and i create controller called ProfileController
class ProfileController extends RController
{
public function filters()
{
return array('rights');
}
}
i decided who can access this controller but when user try to access this page it redirect him to
Error 403
You are not authorized to perform this action.
i need in this case redirect to page PayDetails
i try but fail in this case
i found solution to my problem
first: you shold make role to your controller from your rights module like: access profile
second: i create index page any user can access it
third: i write this code in my index
i think important part in this code