diff --git a/app/controllers/courses_controller.rb b/app/controllers/courses_controller.rb index 57d57938..b65f2219 100644 --- a/app/controllers/courses_controller.rb +++ b/app/controllers/courses_controller.rb @@ -1481,14 +1481,14 @@ class CoursesController < ApplicationController def new if User.current.login? - @course_type = params[:course_type] ||= params[:course] - @issue_custom_fields = IssueCustomField.sorted.all - @trackers = Tracker.sorted.all - @course = Course.new - @course.safe_attributes = params[:course] - @syllabus = Syllabus.where("id = #{params[:syllabus_id].to_i}").first if params[:syllabus_id] - # month = Time.now.month - render :layout => 'base_edu' + if User.current.user_extensions.try(:identity) == 1 + render_403 + else + @course = Course.new + @course.safe_attributes = params[:course] + # month = Time.now.month + render :layout => 'base_edu' + end else redirect_to signin_url end