|
|
|
@ -216,10 +216,15 @@ class CoursesController < ApplicationController
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def settings
|
|
|
|
|
@issue_custom_fields = IssueCustomField.sorted.all
|
|
|
|
|
@issue_category ||= IssueCategory.new
|
|
|
|
|
@member ||= @course.members.new
|
|
|
|
|
@trackers = Tracker.sorted.all
|
|
|
|
|
if User.current.allowed_to?(:as_teacher,@course)
|
|
|
|
|
@issue_custom_fields = IssueCustomField.sorted.all
|
|
|
|
|
@issue_category ||= IssueCategory.new
|
|
|
|
|
@member ||= @course.members.new
|
|
|
|
|
@trackers = Tracker.sorted.all
|
|
|
|
|
else
|
|
|
|
|
render_403
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def create
|
|
|
|
|