mirror of
https://github.com/zulip/zulip.git
synced 2025-10-24 08:33:43 +00:00
users: Add support for changing user role to moderator in api.
This commit adds backend support for changing a user role to moderator and also to change role from moderator to any other role.
This commit is contained in:
@@ -1186,6 +1186,7 @@ class UserProfile(AbstractBaseUser, PermissionsMixin):
|
||||
ROLE_TYPES = [
|
||||
ROLE_REALM_OWNER,
|
||||
ROLE_REALM_ADMINISTRATOR,
|
||||
ROLE_MODERATOR,
|
||||
ROLE_MEMBER,
|
||||
ROLE_GUEST,
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user