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