Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Admins are seeing their own group and cert link requests instead of the users requests #866

Open
jacogasp opened this issue Nov 7, 2024 · 0 comments

Comments

@jacogasp
Copy link
Contributor

jacogasp commented Nov 7, 2024

When an administrator is navigating a user page, for example /dashboard#!/user/1d528512-477f-4f9c-b7de-8b7bd27dceeb, the Group Requests and X.509 certificate linking requests panels should show the user's requests.
Instead, the admin requests are shown independently from the user page that they are inspecting.

This is due to the wrong username queried to the API: if we are navigating the user page of the user with userName = foo, the query should be /iam/group_requests?status=PENDING&username=foo.
Instead, the query /iam/group_requests?status=PENDING&username=admin (supposing that admin is the administrator's username) is always performed, no matter which user page the admin is watching.

@rmiccoli rmiccoli changed the title Admins are seeing their own group requests and cert link request instead of the users requests Admins are seeing their own group and cert link requests instead of the users requests Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant