Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
cassidysymons committed Sep 20, 2023
1 parent 6ee7cc5 commit d3e64b7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion microsetta_private_api/api/_consent.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ def sign_consent_doc(account_id, source_id, consent_type, body, token_info):
# at the creation_time on the source. Anything pre-overhaul is
# prevented from signing a new consent document.
if source.source_data.age_range not in ["legacy", "18-plus"] and\
not source_repo.check_source_post_overhaul(account_id, source_id):
not source_repo.check_source_post_overhaul(
account_id, source_id
):
return jsonify(
code=403, message="Minors may not sign new consent documents"
), 403
Expand Down

0 comments on commit d3e64b7

Please sign in to comment.