Skip to content

Commit

Permalink
Remove unused argument from Spree::Ability method
Browse files Browse the repository at this point in the history
  • Loading branch information
kristinalim committed Jun 1, 2019
1 parent ecea060 commit 2c52c1a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/models/spree/ability_decorator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def add_product_management_abilities(user)
can [:admin, :index, :customers, :orders_and_distributors, :group_buys, :bulk_coop, :payments,
:orders_and_fulfillment, :products_and_inventory, :order_cycle_management, :packing],
Spree::Admin::ReportsController
add_enterprise_fee_summary_abilities(user)
add_enterprise_fee_summary_abilities
end

def add_order_cycle_management_abilities(user)
Expand Down Expand Up @@ -264,7 +264,7 @@ def add_order_management_abilities(user)
can [:admin, :index, :customers, :group_buys, :bulk_coop, :sales_tax, :payments,
:orders_and_distributors, :orders_and_fulfillment, :products_and_inventory,
:order_cycle_management, :xero_invoices], Spree::Admin::ReportsController
add_enterprise_fee_summary_abilities(user)
add_enterprise_fee_summary_abilities

can [:create], Customer
can [:admin, :index, :update, :destroy, :show], Customer, enterprise_id: Enterprise.managed_by(user).pluck(:id)
Expand All @@ -288,7 +288,7 @@ def add_relationship_management_abilities(user)
end
end

def add_enterprise_fee_summary_abilities(user)
def add_enterprise_fee_summary_abilities
# Reveal the report link in spree/admin/reports#index
can [:enterprise_fee_summary], Spree::Admin::ReportsController
# Allow direct access to the report resource
Expand Down

0 comments on commit 2c52c1a

Please sign in to comment.