老师切换为学生身份

dev_ec^2
cxt 5 years ago
parent 778b1811a0
commit 88f16d4552

@ -1133,7 +1133,7 @@ class CoursesController < ApplicationController
def top_banner
@user = current_user
@switch_student = Course::BUSINESS < @user_course_identity < Course::STUDENT
@switch_student = Course::BUSINESS < @user_course_identity && @user_course_identity < Course::STUDENT
@is_student = @user_course_identity == Course::STUDENT
@course.increment!(:visits)
end

Loading…
Cancel
Save