activeadmin icon indicating copy to clipboard operation
activeadmin copied to clipboard

Authorization on blank slate

Open tiagovarela opened this issue 13 years ago • 1 comments

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)

tiagovarela avatar Oct 18 '13 17:10 tiagovarela

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

seanlinsley avatar Oct 18 '13 17:10 seanlinsley