课堂实名和职业认证的调整

chromesetting
cxt 5 years ago
parent 259d4126de
commit a7405e51e2

@ -45,7 +45,7 @@ class ApplicationController < ActionController::Base
check_account
tip_exception(@course.excellent ? 410 : 409, "您没有权限进入")
end
if @user_course_identity == Course::STUDENT
if @user_course_identity > Course::CREATOR && @user_course_identity <= Course::STUDENT
# 实名认证和职业认证的身份判断
tip_exception(411, "你的实名认证和职业认证审核未通过") if @course.authentication &&
@course.professional_certification && (!current_user.authentication && !current_user.professional_certification)

Loading…
Cancel
Save