feat(graphql): messages can be discarded through api

This commit is contained in:
Paul Chavard 2024-06-04 17:40:48 +02:00
parent f508921d2f
commit 9753a91db6
No known key found for this signature in database
8 changed files with 169 additions and 1 deletions

View file

@ -558,8 +558,12 @@ class Dossier < ApplicationRecord
false
end
def blocked_with_pending_correction?
procedure.feature_enabled?(:blocking_pending_correction) && pending_correction?
end
def can_passer_en_instruction?
return false if procedure.feature_enabled?(:blocking_pending_correction) && pending_correction?
return false if blocked_with_pending_correction?
true
end