From cf519116eeb5460a5c2b4c605b5988e00549d72f Mon Sep 17 00:00:00 2001 From: Ana Nunes da Silva Date: Fri, 10 Feb 2023 17:47:00 +0000 Subject: [PATCH] Remove print ticket authorization --- app/models/spree/ability.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/spree/ability.rb b/app/models/spree/ability.rb index 48427de30b..cfa3fa0f68 100644 --- a/app/models/spree/ability.rb +++ b/app/models/spree/ability.rb @@ -263,7 +263,7 @@ module Spree def add_order_management_abilities(user) can [:index, :create], Spree::Order - can [:read, :update, :fire, :resend, :invoice, :print, :print_ticket], Spree::Order do |order| + can [:read, :update, :fire, :resend, :invoice, :print], Spree::Order do |order| # We allow editing orders with a nil distributor as this state occurs # during the order creation process from the admin backend order.distributor.nil? ||