File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,10 +8,11 @@ class ConsentFormsController < ApplicationController
88 before_action :set_patient , only : %i[ edit_match update_match ]
99 before_action :set_search_params_present , only : :search
1010
11- skip_after_action :verify_authorized , only : :index
1211 skip_after_action :verify_policy_scoped , only : :search
1312
1413 def index
14+ authorize ConsentForm
15+
1516 consent_forms = policy_scope ( ConsentForm ) . unmatched . order ( :recorded_at )
1617
1718 if ( session_slug = params [ :session_slug ] ) . present?
Original file line number Diff line number Diff line change @@ -7,11 +7,11 @@ class SchoolMovesController < ApplicationController
77 before_action :set_school_move , except : :index
88 before_action :set_patient , except : :index
99
10- skip_after_action :verify_authorized , only : :index
11-
1210 layout "full"
1311
1412 def index
13+ authorize SchoolMove
14+
1515 school_moves =
1616 policy_scope ( SchoolMove ) . includes (
1717 :team ,
You can’t perform that action at this time.
0 commit comments