From 1e84e4fa85bb9899802ea45c16a9ed8e108e918b Mon Sep 17 00:00:00 2001 From: Rafael Schouten Date: Thu, 2 Oct 2014 13:11:19 +1000 Subject: [PATCH] own and any instead of single and full for abilities --- app/models/spree/ability_decorator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/spree/ability_decorator.rb b/app/models/spree/ability_decorator.rb index 8dc0f95381..6da00753b6 100644 --- a/app/models/spree/ability_decorator.rb +++ b/app/models/spree/ability_decorator.rb @@ -23,7 +23,7 @@ class AbilityDecorator end def can_manage_orders?(user) - ( user.enterprises.map(&:type) & %w(single full) ).any? + ( user.enterprises.map(&:sells) & %w(own any) ).any? end def can_manage_relationships?(user)