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

Authorization on blank slate #2588

Closed
tiagovarela opened this issue Oct 18, 2013 · 1 comment
Closed

Authorization on blank slate #2588

tiagovarela opened this issue Oct 18, 2013 · 1 comment

Comments

@tiagovarela
Copy link

While using authorizations, a user without "create" permissions is still presented with the "Create One" link on the blank slate page.

Can the render_blank_slate method have this condition instead?
controller.action_methods.include?('new') && authorized?(ActiveAdmin::Auth::CREATE, active_admin_config.resource_class)

@seanlinsley
Copy link
Contributor

Indeed it should. I noticed this months back but never created a ticket for it. Thanks for the reminder 🐱

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