Skip to content

Commit 323eb21

Browse files
committed
[#2832] Rx.mission/Venray: Also show documents with the status archived, correcting 'gearchiveerd' visibility tests
1 parent f359742 commit 323eb21

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/open_inwoner/openzaak/utils.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ def is_info_object_visible(
3434
"""
3535
Test if a InformatieObject (case info object) should be visible to the user.
3636
37-
We check on its definitive status, and a maximum confidentiality level (compared the
38-
ordering from the VertrouwelijkheidsAanduidingen.choices)
37+
We check on its definitive or archived status, and a maximum confidentiality
38+
level (compared the ordering from the VertrouwelijkheidsAanduidingen.choices)
3939
"""
40-
if info_object.status != "definitief":
40+
if info_object.status not in ["definitief", "gearchiveerd"]:
4141
return False
4242

4343
return is_object_visible(info_object, max_confidentiality_level)

0 commit comments

Comments
 (0)