Files
WebApi/webapi/cama_follow_up/access.py
T
Angel Capetillo Zavala b1bbbc25b4 Integrate CaMa follow-up, descriptive analysis and L3 with dev
Preserve dev risk batches and governance, individual patient selection, optional access and explicit cohort reader overrides. Register one CaMa implementation and retain legacy Python blueprint consumers. Validated with 681 WebApi tests on the integrated parent and submodules.
2026-11-17 10:44:07 -06:00

9 lines
339 B
Python

"""Retain dev's optional access callback; no new authentication policy."""
from flask import current_app, jsonify, request
def configured_access():
check = current_app.config.get('CAMA_COHORT_ACCESS')
if check is not None and (not callable(check) or not check(request)):
return jsonify(error='Acceso no autorizado'), 403