Files
openfoodnetwork/lib/open_food_network
Maikel Linke 1d2115766a Show product groups to platform user
I removed the caching of `managed_enterprises` in Permissions because
it's just a scope and calling it again is very cheap. And that makes the
method a lot easier to read now that we have a conditional here.

Accessing the managed enterprises via the user instead of a separate
scope on the Enterprise model also reduce the SQL queries. We may want
to use this method in more places. I prefer to keep the
admin-conditional in a permissions class instead of in the model.
2025-08-13 15:06:31 +10:00
..
2025-04-22 13:41:01 +10:00
2023-09-16 09:05:31 +09:00
2021-09-08 14:28:31 +01:00