mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-04-01 06:41:41 +00:00
Fix Permissions.related_enterprises_granted by adding explicit reference to table
This commit is contained in:
@@ -196,7 +196,7 @@ module OpenFoodNetwork
|
||||
with_permission(permission).
|
||||
pluck(:child_id)
|
||||
|
||||
(options[:scope] || Enterprise).where('enterprises.id IN (?)', child_ids).select(:id)
|
||||
(options[:scope] || Enterprise).where('enterprises.id IN (?)', child_ids).select("enterprises.id")
|
||||
end
|
||||
|
||||
def managed_enterprise_products
|
||||
|
||||
Reference in New Issue
Block a user