diff options
| author | Frederick Muriuki Muriithi | 2026-04-08 14:09:31 -0500 |
|---|---|---|
| committer | Frederick Muriuki Muriithi | 2026-04-08 14:09:31 -0500 |
| commit | 19d7c39e44097c2d9b31aba30fb97321db091385 (patch) | |
| tree | 24a58ef7eabccfd42b239ca5204d99d5039390be /gn_auth/auth/authorisation/data | |
| parent | 861c4b7720b3425a96811ce63b45f55ab58faa3f (diff) | |
| download | gn-auth-19d7c39e44097c2d9b31aba30fb97321db091385.tar.gz | |
user resources: return total with filtered records.
Return a count of the total number of resources that the user has access to even if we are only interested in a few of the records.
Diffstat (limited to 'gn_auth/auth/authorisation/data')
| -rw-r--r-- | gn_auth/auth/authorisation/data/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gn_auth/auth/authorisation/data/views.py b/gn_auth/auth/authorisation/data/views.py index 4bf6746..1526070 100644 --- a/gn_auth/auth/authorisation/data/views.py +++ b/gn_auth/auth/authorisation/data/views.py @@ -95,7 +95,7 @@ def authorisation() -> Response: with require_oauth.acquire("profile group resource") as _token: user = _token.user resources = attach_resources_data( - auth_conn, user_resources(auth_conn, _token.user)) + auth_conn, user_resources(auth_conn, _token.user)[0]) resources_roles = user_resource_roles(auth_conn, _token.user) privileges = { resource_id: tuple( |
