|
|
@ -912,7 +912,7 @@ class CoursesController < ApplicationController
|
|
|
|
|
|
|
|
|
|
|
|
def left_banner
|
|
|
|
def left_banner
|
|
|
|
@user = current_user
|
|
|
|
@user = current_user
|
|
|
|
@is_teacher = @user.teacher_of_course?(@course)
|
|
|
|
@is_teacher = @user_course_identity < Course::ASSISTANT_PROFESSOR
|
|
|
|
@course_modules = @course.course_modules.where(hidden: 0)
|
|
|
|
@course_modules = @course.course_modules.where(hidden: 0)
|
|
|
|
@hidden_modules = @course.course_modules.where(hidden: 1)
|
|
|
|
@hidden_modules = @course.course_modules.where(hidden: 1)
|
|
|
|
@second_category_type = ["shixun_homework", "graduation", "attachment", "board", "course_group"]
|
|
|
|
@second_category_type = ["shixun_homework", "graduation", "attachment", "board", "course_group"]
|
|
|
|