diff --git a/app/controllers/courses_controller.rb b/app/controllers/courses_controller.rb index ca409c55..8883aabb 100644 --- a/app/controllers/courses_controller.rb +++ b/app/controllers/courses_controller.rb @@ -235,7 +235,7 @@ class CoursesController < ApplicationController if User.current.user_extensions.identity == 0 if @course.save - unless User.current.admin? + #unless User.current.admin? r = Role.givable.find_by_id(Setting.new_project_user_role_id.to_i) || Role.givable.first m = Member.new(:user => User.current, :roles => [r]) m.project_id = -1 @@ -246,7 +246,7 @@ class CoursesController < ApplicationController end @course.members << m @course.course_infos << course - end + #end respond_to do |format| format.html { flash[:notice] = l(:notice_successful_create) diff --git a/app/models/course.rb b/app/models/course.rb index da5bb5be..7a9e411d 100644 --- a/app/models/course.rb +++ b/app/models/course.rb @@ -26,7 +26,6 @@ class Course < ActiveRecord::Base has_many :enabled_modules, :dependent => :delete_all has_many :boards, :dependent => :destroy, :order => "position ASC" #has_many :course_journals_for_messages, :class_name => 'CourseJournalsForMessage', :as => :jour, :dependent => :destroy - has_many :journals_for_messages, :as => :jour, :dependent => :destroy has_many :news, :dependent => :destroy, :include => :author acts_as_taggable