From 958878dc188839b5d87544af09506e7c14293897 Mon Sep 17 00:00:00 2001
From: 24c02 <163450896+24c02@users.noreply.github.com>
Date: Thu, 18 Dec 2025 14:57:39 -0500
Subject: [PATCH] Skip Pundit authorization for HCB payment accounts controller
---
.idea/workspace.xml | 7 ++-----
app/controllers/hcb/payment_accounts_controller.rb | 4 +++-
2 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index ca3a483..004fe14 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,10 +4,7 @@
-
-
-
-
+
@@ -158,7 +155,7 @@
-
+
diff --git a/app/controllers/hcb/payment_accounts_controller.rb b/app/controllers/hcb/payment_accounts_controller.rb
index 1a17466..4a42fd7 100644
--- a/app/controllers/hcb/payment_accounts_controller.rb
+++ b/app/controllers/hcb/payment_accounts_controller.rb
@@ -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