From 309ddece89eead5a93f937b748ada933c8b4b85c Mon Sep 17 00:00:00 2001 From: Rafael Schouten Date: Fri, 12 Sep 2014 10:38:04 +1000 Subject: [PATCH] make profile icons work --- app/models/enterprise.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/enterprise.rb b/app/models/enterprise.rb index 3452f620c8..cb04e3fa4c 100644 --- a/app/models/enterprise.rb +++ b/app/models/enterprise.rb @@ -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