登录弹框应该优先于加入课堂弹框,接口应该优先判断是否登录

dev_forum
cxt 6 years ago
parent 6a1b7dd627
commit d7c0ef56f0

@ -38,6 +38,7 @@ class ApplicationController < ActionController::Base
def user_course_identity
@user_course_identity = current_user.course_identity(@course)
if @user_course_identity > Course::STUDENT && @course.is_public == 0
tip_exception(401, "..") unless User.current.logged?
tip_exception(409, "您没有权限进入")
end
uid_logger("###############user_course_identity:#{@user_course_identity}")

Loading…
Cancel
Save