diff options
| author | Claude | 2026-09-01 15:36:34 +0000 |
|---|---|---|
| committer | Frederick Muriuki Muriithi | 2026-09-01 10:39:53 -0500 |
| commit | aab9408e8c1641c0552e51e1c9f6ebd8804f00cc (patch) | |
| tree | b12aa8275db4242d24f16e69e95d73030c4606a1 /gn_auth/errors/http/http_5xx_errors.py | |
| parent | 7f5a53035b8c39cc4c0821cc6e6a7c4ca7fcd293 (diff) | |
| download | gn-auth-aab9408e8c1641c0552e51e1c9f6ebd8804f00cc.tar.gz | |
fix(auth): check system:user:list against system resource in resource_users
The HACK block in resource_users() was checking the system:user:list privilege against the requested resource_id rather than the system resource. This made the sysadmin branch a dead leg: sysadmins hold system:user:list on the system resource, not on individual data resources. Fix: pass system_resource(conn).resource_id for the system-level check. Also restructure to early-return on auth failure (cleaner control flow). Reviewed-By: Frederick M. Muriithi <fredmanglis@gmail.com>
Diffstat (limited to 'gn_auth/errors/http/http_5xx_errors.py')
0 files changed, 0 insertions, 0 deletions
