Skip to content

Commit

Permalink
fix: simple evaluation
Browse files Browse the repository at this point in the history
  • Loading branch information
BoehmDo committed Dec 2, 2024
1 parent a2f575a commit c44b2de
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions facade_app/util/consentAndResourceUtil.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,13 @@ def matchResourcesWithConsents(resources, consents, resource_config, provision_c

for prov_code in provision_config["coding"]:
provision_exists = False
provision_permit = False
for provision in provision_time_set[subject]:
if provision["code"] == prov_code:
provision_exists = True
break
if not provision_exists:
if provision["code"] == prov_code and provision["type"] == "permit":
provision_permit = True
if not provision_exists or not provision_permit:
is_consented = False
break

Expand Down

0 comments on commit c44b2de

Please sign in to comment.