Skip to content

Commit

Permalink
Authorize uuid for update_positions on ResourceController
Browse files Browse the repository at this point in the history
  • Loading branch information
julienanne committed Apr 12, 2023
1 parent 813a9a1 commit 7fea311
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/app/controllers/spree/admin/resource_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def update_positions
records = model_class.where(id: positions.keys).to_a

positions.each do |id, index|
records.find { |r| r.id == id.to_i }&.set_list_position(index)
records.find { |r| r.id.to_s == id }&.set_list_position(index)
end
end

Expand Down

0 comments on commit 7fea311

Please sign in to comment.