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