mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-17 00:07:24 +00:00
fix enterprsie model logic
This commit is contained in:
committed by
Rob Harrington
parent
dee503befb
commit
e9c8547ca3
@@ -215,7 +215,7 @@ class Enterprise < ActiveRecord::Base
|
||||
# Type: full - single - profile becomes Sells: all - own - none
|
||||
# Remove this return later.
|
||||
return "none" if !is_distributor || type == "profile"
|
||||
return "own" if suppliers == [self] || type == "single"
|
||||
return "own" if type == "single" || suppliers == [self]
|
||||
"all"
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user