Re-instate is_admin flag in users API is current user is an admin
What does this MR do?
Fix bug #33260 (closed) by reinstating the is_admin flag in the users api (both v3 and v4) ONLY when the requesting user is authenticated as an admin.
Done this by creating a new entity UserWithAdmin which is the same as User but with the additional is_admin flag present.
Are there points in the code the reviewer needs to double check?
Why was this MR needed?
The current behaviour has broken existing tools that use the API and rely on the is_admin flag being present
There are workarounds, but they are slow and cumbersome.
Screenshots (if relevant)
Does this MR meet the acceptance criteria?
- Changelog entry added, if necessary
- Documentation created/updated
- API support added
- Added for this feature/bug
- All builds are passing
- Conform by the merge request performance guides
- Conform by the style guides
Branch has no merge conflicts with
master(if it does - rebase it please)
- Squashed related commits together
What are the relevant issue numbers?
Closes #33260 (closed)