-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The page isn't redirecting properly #36
Comments
I think it's because you have not allowed the guests (anonymous users) to access the login page. |
@softark thanks for your reply but that is what I want to know, can you please tell me how can I allow guests for some actions? |
Probably you have to do the following:
|
How do you define role 'guest' as default role? I can't use defaultRoles in main.php within array authManager |
As you see in the guide, you can define the default roles in the config file. And, well, I think the 'guest' role won't need a business rule, because everyone should have the rights as a guest. |
Ah, I've found another simple solution in a comment of auth extension.
|
I mean, this won't work
[protected/components/controller.php]
add role guest using yii-auth with operation site.* I get error: |
Sorry, I think this "issue" should be closed. |
This did the trick #53. |
After enabling module it shows me "The page isn't redirecting properly" and site is no longer accessible.
Here is config file http://codepad.org/ux4fCtEm
and here main controller class http://codepad.org/GFoPJn1s
The text was updated successfully, but these errors were encountered: