users: Return true for admins for is_moderator.

This change is for consistency with how is_admin works.

API design discussion at https://chat.zulip.org/#narrow/channel/378-api-design/topic/Should.20is_moderator.20have.20admins
This commit is contained in:
Shubham Padia
2025-04-17 12:43:07 +00:00
committed by Tim Abbott
parent 50fbaa4da6
commit b8ba174455
18 changed files with 58 additions and 40 deletions

View File

@@ -20,6 +20,13 @@ format used by the Zulip server that they are interacting with.
## Changes in Zulip 11.0
**Feature level 380**
* [`POST /register`](/api/register-queue), [`GET
/events`](/api/get-events): The `is_moderator` convenience field now
is true for organization administrators, matching how `is_admin`
works for organization owners.
**Feature level 379**
* [`PATCH /messages/{message_id}`](/api/update-message): Added

View File

@@ -36,7 +36,8 @@ by the [events API](/api/get-events).
Note that [`POST /register`](/api/register-queue) also returns an
`is_moderator` boolean property specifying whether the current user is
an organization moderator.
at least an organization moderator. The property will be true for admins
and owners too.
Additionally, user account data include an `is_billing_admin` property
specifying whether the user is a billing administrator for the Zulip