From 7c63e59ae9232d9c8f32926396b95af119ef7cf7 Mon Sep 17 00:00:00 2001 From: luisramos0 Date: Sun, 3 Nov 2019 17:53:45 +0000 Subject: [PATCH] Add OC imcoming and outgoing abilities to managers, this fixes a few OC feature specs --- 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 f71c7c9d7e..dccfd4d756 100644 --- a/app/models/spree/ability_decorator.rb +++ b/app/models/spree/ability_decorator.rb @@ -192,7 +192,7 @@ class AbilityDecorator end def add_order_cycle_management_abilities(user) - can [:admin, :index, :read, :edit, :update], OrderCycle do |order_cycle| + can [:admin, :index, :read, :edit, :update, :incoming, :outgoing], OrderCycle do |order_cycle| OrderCycle.accessible_by(user).include? order_cycle end can [:admin, :index, :create], Schedule