关卡问题

schedule_job
daiao 5 years ago
parent 0945fb6049
commit 774013abd3

@ -166,6 +166,10 @@ class ChallengesController < ApplicationController
@shixun_modify = (@challenges.select{|c| c.status.present? }.size == @challenges.size)
logger.info("########shixun_modify#{@shixun_modify}")
logger.info("########challenges.size#{@challenges.size}")
logger.info("########challenge_inspect#{@challenges.inspect}")
#@challenges = @shixun.challenges.fields_for_list
@editable = @shixun.status == 0 # before_action有判断权限如果没发布则肯定是管理人员
@user = current_user

Loading…
Cancel
Save