Skip to content

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?

What are the relevant issue numbers?

Closes #33260 (closed)

Edited by username-removed-118982

Merge request reports