|
|
@ -17,7 +17,7 @@ class GamesService
|
|
|
|
|
|
|
|
|
|
|
|
myshixun = Myshixun.min.find(game.myshixun_id)
|
|
|
|
myshixun = Myshixun.min.find(game.myshixun_id)
|
|
|
|
shixun = Shixun.min.find(myshixun.shixun_id)
|
|
|
|
shixun = Shixun.min.find(myshixun.shixun_id)
|
|
|
|
logger.info("#########container: #{shixun_container_limit(shixun)}")
|
|
|
|
Rails.logger.info("#########container: #{shixun_container_limit(shixun)}")
|
|
|
|
unless ((myshixun.user_id == current_user.id || current_user.business? || current_user.id == shixun.try(:user_id) ||
|
|
|
|
unless ((myshixun.user_id == current_user.id || current_user.business? || current_user.id == shixun.try(:user_id) ||
|
|
|
|
current_user.is_certification_teacher) && (shixun.operable?)) || current_user.admin?
|
|
|
|
current_user.is_certification_teacher) && (shixun.operable?)) || current_user.admin?
|
|
|
|
Rails.logger.info("######403???")
|
|
|
|
Rails.logger.info("######403???")
|
|
|
|