mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
logic for producer shop icon in list view
This commit is contained in:
@@ -85,7 +85,7 @@ class Api::CachedEnterpriseSerializer < ActiveModel::Serializer
|
||||
|
||||
# TODO: Remove this when flags on enterprises are switched over
|
||||
def can_aggregate
|
||||
object.is_distributor && !object.is_primary_producer
|
||||
object.is_distributor && object.suppliers != [object]
|
||||
end
|
||||
|
||||
# TODO when ActiveSerializers supports URL helpers
|
||||
|
||||
Reference in New Issue
Block a user