|
|
|
@ -8,7 +8,7 @@ class Competitions::PrizesController < Competitions::BaseController
|
|
|
|
|
|
|
|
|
|
@leader = self_prizes.any?{ |prize_user| prize_user.leader? && prize_user.competition_prize.category == 'bonus' } # 是否为队长并且有奖金奖励
|
|
|
|
|
if @leader || current_user.admin_or_business?
|
|
|
|
|
@bank_account = self_prizes.find(&:leader?).extra
|
|
|
|
|
@bank_account = self_prizes.find(&:leader?)&.extra
|
|
|
|
|
@bank_account_editable = self_prizes.select(&:leader?).all?(&:pending?)
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|