-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Pundit error: not allowed to index? this Class #2389
Comments
Hello! I wonder if this is caused by the change which was eventually fixed in #2383. Could you try pulling from |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I just started using administrate and encountered a problem when integrating with Pundit.
When I
include Administrate::Punditize
in the Admin::ApplicationController, I get a Pundit::NotAuthorizedError at my /admin route, with error:not allowed to index? this Class
.The action I'm rooting to is:
The Venues controller has:
And the policy has:
visible_to is an included module scope:
The policy works outside of administrate, so I'm not sure what I'm doing wrong here. Any ideas?
The text was updated successfully, but these errors were encountered: