b1bbbc25b4
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.
9 lines
339 B
Python
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
|