老师切换为学生身份

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

@ -1133,7 +1133,7 @@ class CoursesController < ApplicationController
def top_banner def top_banner
@user = current_user @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 @is_student = @user_course_identity == Course::STUDENT
@course.increment!(:visits) @course.increment!(:visits)
end end

Loading…
Cancel
Save