I want to restrict access to ActiveAdmin collection_action. Is it possible to do it somehow?
I need something like this:
collection_action :send_emails, method: :post, if: proc { authorized? }
I want to restrict access to ActiveAdmin collection_action. Is it possible to do it somehow?
I need something like this:
collection_action :send_emails, method: :post, if: proc { authorized? }
Definitely, you can use their standard Authorization Adapter https://activeadmin.info/13-authorization-adapter.html