|
|
@ -605,7 +605,7 @@ class CoursesController < ApplicationController
|
|
|
|
|
|
|
|
|
|
|
|
def toggleCourse
|
|
|
|
def toggleCourse
|
|
|
|
@course_prefs = Course.find_by_extra(@course.extra)
|
|
|
|
@course_prefs = Course.find_by_extra(@course.extra)
|
|
|
|
unless (@course_prefs.teacher == User.current || User.current.admin?)
|
|
|
|
unless (@course_prefs.student != User.current || User.current.admin?)
|
|
|
|
render_403
|
|
|
|
render_403
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|