Skip to content

Commit

Permalink
Grant product managers ability to create reports
Browse files Browse the repository at this point in the history
We missed this in c31416c, oops.
  • Loading branch information
dacook committed Sep 17, 2024
1 parent d798e0c commit bdaecfb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/spree/ability.rb
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def add_product_management_abilities(user)
can [:admin, :index], ::Admin::DfcProductImportsController

# Reports page
can [:admin, :index, :show], ::Admin::ReportsController
can [:admin, :index, :show, :create], ::Admin::ReportsController
can [:admin, :show, :create, :customers, :orders_and_distributors, :group_buys, :payments,
:orders_and_fulfillment, :products_and_inventory, :order_cycle_management,
:packing, :enterprise_fee_summary, :bulk_coop], :report
Expand Down
1 change: 0 additions & 1 deletion spec/system/admin/reports/orders_and_fulfillment_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,6 @@
# displays the producer name in the respective column
# does not display the header row
within "td" do
pending("S2 bug fix - #12835")
expect(page).to have_content("Supplier Name")
expect(page).not_to have_css("td.header-row")
end
Expand Down

0 comments on commit bdaecfb

Please sign in to comment.