Use Ash policies with simple functions
I was wondering if there is a way easy way to use Ash policies in places that you don't actually have an Ash resource.
For example, I'm using
For example, I'm using
FunWithFlags package for feature flags. I have a live view to handle the flags, and also a context module for it. Now I wan't to create some authorization code to this context module, and since I'm already using Ash for the rest of the system, I was wondering if there is a way to configure policies for a specific function.