parent
ecfcbf1078
commit
43b204e0a7
|
@ -832,7 +832,7 @@ class BidsController < ApplicationController
|
|||
}
|
||||
end
|
||||
else
|
||||
render 403
|
||||
render_403
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -216,10 +216,15 @@ class CoursesController < ApplicationController
|
|||
end
|
||||
|
||||
def settings
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue