|
|
@ -281,7 +281,7 @@ class CoursesController < ApplicationController
|
|
|
|
@issue_custom_fields = IssueCustomField.sorted.all
|
|
|
|
@issue_custom_fields = IssueCustomField.sorted.all
|
|
|
|
@trackers = Tracker.sorted.all
|
|
|
|
@trackers = Tracker.sorted.all
|
|
|
|
|
|
|
|
|
|
|
|
if @course.save
|
|
|
|
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
|
|
|
|
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 = Member.new(:user => User.current, :roles => [r])
|
|
|
|