左侧导航栏去掉助教身份

dev_course
cxt 6 years ago
parent eea6d6125a
commit 4ac9838d36

@ -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"]

Loading…
Cancel
Save