|
|
|
@ -10,7 +10,7 @@ class Competitions::SavePrizeTeamAccountService < ApplicationService
|
|
|
|
|
def call
|
|
|
|
|
Competitions::SavePrizeTeamAccountForm.new(params).validate!
|
|
|
|
|
|
|
|
|
|
prize_leaders = competition.competition_prize_users.where(competition.competition_prize_users)
|
|
|
|
|
prize_leaders = competition.competition_prize_users.where(user_id: user.id, leader: true)
|
|
|
|
|
|
|
|
|
|
raise Error, '审批通过后不能修改' if prize_leaders.exists?(status: :approved)
|
|
|
|
|
|
|
|
|
|