Skip Pundit authorization for HCB payment accounts controller

This commit is contained in:
24c02 2025-12-18 14:57:39 -05:00
parent 9aea7b8ec8
commit 958878dc18
2 changed files with 5 additions and 6 deletions

7
.idea/workspace.xml generated
View file

@ -4,10 +4,7 @@
<option name="autoReloadType" value="SELECTIVE" />
</component>
<component name="ChangeListManager">
<list default="true" id="d1cc2402-3c65-4046-bb1c-ec3e5b4aef52" name="Changes" comment="">
<change beforePath="$PROJECT_DIR$/app/controllers/hcb/oauth_connections_controller.rb" beforeDir="false" afterPath="$PROJECT_DIR$/app/controllers/hcb/oauth_connections_controller.rb" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/models/hcb/oauth_connection.rb" beforeDir="false" afterPath="$PROJECT_DIR$/app/models/hcb/oauth_connection.rb" afterDir="false" />
</list>
<list default="true" id="d1cc2402-3c65-4046-bb1c-ec3e5b4aef52" name="Changes" comment="" />
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
@ -158,7 +155,7 @@
<workItem from="1765302419304" duration="4201000" />
<workItem from="1765488873945" duration="19000" />
<workItem from="1765488900213" duration="5988000" />
<workItem from="1766085135057" duration="1928000" />
<workItem from="1766085135057" duration="2273000" />
</task>
<servers />
</component>

View file

@ -1,5 +1,7 @@
class HCB::PaymentAccountsController < ApplicationController
before_action :require_hcb_connection
skip_after_action :verify_authorized
before_action :require_hcb_connection, except: [:index]
before_action :set_payment_account, only: [:show, :destroy]
def index