Remove print ticket authorization

This commit is contained in:
Ana Nunes da Silva
2023-02-10 17:47:00 +00:00
parent 8dc50caaa8
commit cf519116ee

View File

@@ -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? ||