add check a build list validation before restart task

This commit is contained in:
Alexander Machehin 2015-04-03 20:25:21 +05:00
parent 7669ea33f9
commit f5a68ed4ae
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ module AbfWorker
end
def perform
return if restart_task
return if subject.valid? && restart_task
if options['feedback_from_user']
user = User.find options['feedback_from_user']
return if !user.system? && subject.builder != user