mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Add scope to only allow visible enterprises in group
This commit is contained in:
@@ -62,7 +62,7 @@ module InjectionHelper
|
||||
def inject_group_enterprises
|
||||
inject_json_array(
|
||||
"enterprises",
|
||||
@group.enterprises.activated.all,
|
||||
@group.enterprises.activated.visible.all,
|
||||
Api::EnterpriseSerializer,
|
||||
enterprise_injection_data
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user