diff --git a/app/models/assessment.rb b/app/models/assessment.rb index f2083e2c18..ed1dfa3180 100644 --- a/app/models/assessment.rb +++ b/app/models/assessment.rb @@ -115,6 +115,10 @@ def can_decline? any_further_information_request_failed? elsif review? professional_standing_request_review_failed? + elsif verify? + enough_reference_requests_reviewed? && + all_qualification_requests_reviewed? && + professional_standing_request_verified? && !can_review? && !can_award? else false end @@ -258,6 +262,14 @@ def professional_standing_request_review_passed? end end + def professional_standing_request_verified? + if professional_standing_request_part_of_verification? + professional_standing_request.verified? + else + true + end + end + def professional_standing_request_review_failed? if professional_standing_request_part_of_verification? professional_standing_request.review_failed?