Added auth for order_cycle_management_report. This report was breaking supplier enterprises reports due to incorrect authorization.

This commit is contained in:
Lynne Davis
2015-04-26 11:02:06 +01:00
parent d9e8ce2f0e
commit 6bbd3f7c13

View File

@@ -112,7 +112,7 @@ class AbilityDecorator
can [:admin, :index, :read, :create, :edit], Spree::Classification
# Reports page
can [:admin, :index, :customers, :orders_and_distributors, :group_buys, :bulk_coop, :payments, :orders_and_fulfillment, :products_and_inventory], :report
can [:admin, :index, :customers, :orders_and_distributors, :group_buys, :bulk_coop, :payments, :orders_and_fulfillment, :products_and_inventory, :order_cycle_management], :report
end
def add_order_management_abilities(user)