Skip to content

Commit f2f4e64

Browse files
committed
moving private
1 parent 5dc7e52 commit f2f4e64

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

app/controllers/records_controller.rb

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -229,14 +229,6 @@ def update_new_needs_csv(file_name, course_number, section)
229229
end
230230
end
231231

232-
private
233-
def authorize_admin!
234-
case session[:role].to_s
235-
when "admin"
236-
else
237-
redirect_to root_path, alert: "Unauthorized access."
238-
end
239-
end
240232

241233
def un_confirmed_params(type)
242234
case type
@@ -398,5 +390,15 @@ def determine_assignment_type1(record)
398390
when "Grader_Matches.csv" then "Grader"
399391
end
400392
end
393+
394+
private
395+
def authorize_admin!
396+
case session[:role].to_s
397+
when "admin"
398+
else
399+
redirect_to root_path, alert: "Unauthorized access."
400+
end
401+
end
402+
401403

402404
end

0 commit comments

Comments
 (0)