diff --git a/app/controllers/courses_controller.rb b/app/controllers/courses_controller.rb index 01ce1f6e8..8de98f0cb 100644 --- a/app/controllers/courses_controller.rb +++ b/app/controllers/courses_controller.rb @@ -912,7 +912,7 @@ class CoursesController < ApplicationController def left_banner @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) @hidden_modules = @course.course_modules.where(hidden: 1) @second_category_type = ["shixun_homework", "graduation", "attachment", "board", "course_group"]