about summary refs log tree commit diff
path: root/gn_auth/scripts
diff options
context:
space:
mode:
authorClaude2026-09-01 15:36:34 +0000
committerFrederick Muriuki Muriithi2026-09-01 10:39:53 -0500
commitaab9408e8c1641c0552e51e1c9f6ebd8804f00cc (patch)
treeb12aa8275db4242d24f16e69e95d73030c4606a1 /gn_auth/scripts
parent7f5a53035b8c39cc4c0821cc6e6a7c4ca7fcd293 (diff)
downloadgn-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/scripts')
0 files changed, 0 insertions, 0 deletions