activeadmin
activeadmin copied to clipboard
Authorization on blank slate
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)
Indeed it should. I noticed this months back but never created a ticket for it. Thanks for the reminder :cat: