Skip to content

Commit

Permalink
Fix POA controller, test
Browse files Browse the repository at this point in the history
  • Loading branch information
pixiitech committed Dec 20, 2024
1 parent 2db716f commit a6d529a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def index
end

def show
if poa_request && PowerOfAttorneyRequestPolicy.new(current_user, poa_request).show?
if poa_request && authorize(poa_request, :show?, policy_class: AccreditedRepresentativePortal::PowerOfAttorneyRequestPolicy)
render json: { data: poa_request }
else
head :not_found
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
def index
head :ok
end

def verify_pundit_authorization; end
end

let(:representative_user) { create(:representative_user) }
Expand Down

0 comments on commit a6d529a

Please sign in to comment.