app/controllers/sections_controller.rb
# This is intended for project leads or developers
This is intended for project leads or developers
This is intended for project leads or developers
def index
    raise Exceptions::EducatorNotAuthorized unless PerDistrict.new.high_school_enabled?
    raise Exceptions::EducatorNotAuthorized unless current_educator.can_set_districtwide_access?
    @educator_courses = Course.all.order(:course_number)
  end
def index raise Exceptions :: EducatorNotAuthorized unless PerDistrict . new . high_school_enabled? raise Exceptions :: EducatorNotAuthorized unless current_educator . can_set_districtwide_access? @educator_courses = Course . all . order ( :course_number ) end
This is intended for project leads or developers
This is intended for project leads or developers