Search code examples
aggregation-frameworkeve

User-restricted resource access for aggregate endpoints


Is there a way to apply user-restricted resource access to aggregation endpoints?

I am currently using a mix of the resource access restriction and pre-request event hooks to restrict access to all endpoints, but it doesn't work for aggregation endpoints.


Solution

  • This can now be achieved by adding an aggregation match filter via pre-request event hooks feature. The two new event hooks, before_aggregation and after_aggregation, are available in the development branch (master, version: 0.8-dev) of python-eve .