mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
make profile icons work
This commit is contained in:
@@ -256,9 +256,9 @@ class Enterprise < ActiveRecord::Base
|
||||
end
|
||||
|
||||
# TODO: Remove this when flags on enterprises are switched over
|
||||
# Obviously this is duplicated is producer currently, needs to
|
||||
# Obviously this duplicates is_producer currently
|
||||
def can_supply
|
||||
is_primary_producer #and has distributors?
|
||||
is_primary_producer && type != "profile" #and has distributors?
|
||||
end
|
||||
|
||||
# Return all taxons for all distributed products
|
||||
|
||||
Reference in New Issue
Block a user