about summary refs log tree commit diff
path: root/sql
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi <frederick@fallion.localhost>2026-08-28 15:15:32 +0000
committerFrederick Muriuki Muriithi <fredmanglis@gmail.com>2026-08-28 10:17:31 -0500
commitaa06a02876cc55306ca037e4653c6c100bb0bbea (patch)
treed3bf097c8b55abee4eca5372721cbc1f81ea47b5 /sql
parentd103f87d3cb152ceca4afc90967f289662043a7d (diff)
downloadgenenetwork3-aa06a02876cc55306ca037e4653c6c100bb0bbea.tar.gz
fix(case-attr): add can_edit privilege check to edit endpoints
Both the flat and v1 edit endpoints had @require_token but no privilege
check, so any valid token could queue an edit.

- edit_case_attributes (flat): fetch species_id from DB, call
  __population_privileges__, raise AuthorisationError if not can_edit.
- v1_edit_case_attributes: same pattern; species_id comes from the URL.

Case-attribute names remain publicly accessible (no token required).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Reviewed-By: Frederick M. Muriithi <fredmanglis@gmail.com>
Diffstat (limited to 'sql')
0 files changed, 0 insertions, 0 deletions