In our system, we have
config :ash, :policies,
show_policy_breakdowns?: true,
log_policy_breakdowns: :error
Set for production because it help us debug bugs faster.
But, I noticed that this option will also show breakdowns when calling Ash.can? too. I have some of these calls to define what I will show in my sidebar menu, meaning that every time someone visits the page, it will log a bunch of policy breakdown errors.
Is there some way to disable this only for can? functions? Or the only way is to disable for all policy checks globally?




















