Skip to content

Commit 2638220

Browse files
committed
Merge branch 'staging'
2 parents d1f887b + cb7f1b6 commit 2638220

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

app/controllers/course_offerings_controller.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,12 @@ def authorize_user_for_course_offering_data
610610
end
611611

612612
# In the 'show' action, a student should be able to see the course offering if they are enrolled.
613-
if action_name == 'show' && course_offering.is_enrolled?(current_user)
613+
if (action_name == 'show' ||
614+
action_name == 'get_individual_attempt' ||
615+
action_name == 'find_attempts' ||
616+
action_name == 'get_codeworkout_progress' ||
617+
action_name == 'find_module_progresses') &&
618+
course_offering.is_enrolled?(current_user)
614619
return
615620
end
616621

0 commit comments

Comments
 (0)