Skip to content

Commit

Permalink
Whitelist parameters for return_authorizations filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksandar Petrushev committed Dec 20, 2021
1 parent 0151174 commit d0b6380
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
</li>
<li class="nav-item">
<%= link_to Spree.t(:authorized),
params.merge({q: {state_eq: :authorized}}).permit!,
params.permit(q: {}).merge({q: {state_eq: :authorized}}),
class: "nav-link #{'active' if params[:q][:state_eq] == 'authorized'}" %>
</li>
<li class="nav-item">
<%= link_to Spree.t(:canceled),
params.merge({q: {state_eq: :canceled}}).permit!,
params.permit(q: {}).merge({q: {state_eq: :canceled}}),
class: "nav-link #{'active' if params[:q][:state_eq] == 'canceled'}" %>
</li>
<% end %>
Expand Down

0 comments on commit d0b6380

Please sign in to comment.