Skip to content
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

AttributeError: 'AnonymousUserMixin' object has no attribute 'roles' #7

Open
cstrutton opened this issue Nov 20, 2015 · 2 comments
Open

Comments

@cstrutton
Copy link

I get this when I try to hit a protected page with an anonymous (not logged in) user.

Should maybe check roles in a try catch?

@cstrutton
Copy link
Author

I see you took out a try catch in an earlier commit. Was there a reason for doing that that I cant see?

@fivef
Copy link

fivef commented May 13, 2016

As a workaround I added @login_required before @user_is()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants