|
1 | 1 | import logging |
2 | 2 |
|
3 | | -from zgw_consumers.api_models.constants import (RolTypes, |
4 | | - VertrouwelijkheidsAanduidingen) |
| 3 | +from zgw_consumers.api_models.constants import RolTypes, VertrouwelijkheidsAanduidingen |
5 | 4 |
|
6 | | -from open_inwoner.openzaak.api_models import (InformatieObject, Rol, Zaak, |
7 | | - ZaakType) |
| 5 | +from open_inwoner.openzaak.api_models import InformatieObject, Rol, Zaak, ZaakType |
8 | 6 |
|
9 | | -from .models import (OpenZaakConfig, ZaakTypeConfig, |
10 | | - ZaakTypeInformatieObjectTypeConfig) |
| 7 | +from .models import OpenZaakConfig, ZaakTypeConfig, ZaakTypeInformatieObjectTypeConfig |
11 | 8 |
|
12 | 9 | logger = logging.getLogger(__name__) |
13 | 10 |
|
@@ -46,13 +43,13 @@ def is_info_object_visible( |
46 | 43 | We check on its definitive or archived status, and a maximum confidentiality |
47 | 44 | level (compared the ordering from the VertrouwelijkheidsAanduidingen.choices) |
48 | 45 | """ |
49 | | - # if info_object.status not in ["definitief", "gearchiveerd"]: |
50 | | - # logger.info( |
51 | | - # "Ignoring informatieobject %s as not visible for user: status is neither " |
52 | | - # "'definitief' nor 'gearchiveerd'", |
53 | | - # info_object.url, |
54 | | - # ) |
55 | | - # return False |
| 46 | + if info_object.status not in ["definitief", "gearchiveerd"]: |
| 47 | + logger.info( |
| 48 | + "Ignoring informatieobject %s as not visible for user: status is neither " |
| 49 | + "'definitief' nor 'gearchiveerd'", |
| 50 | + info_object.url, |
| 51 | + ) |
| 52 | + return False |
56 | 53 |
|
57 | 54 | return is_object_visible(info_object, max_confidentiality_level) |
58 | 55 |
|
|
0 commit comments