dev_auth
p31729568 6 years ago
parent aa5eb76b57
commit f34bffde8d

@ -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)

Loading…
Cancel
Save