feat(graphql): messages can be discarded through api
This commit is contained in:
parent
f508921d2f
commit
9753a91db6
8 changed files with 169 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue