management: Include moderator option in change_user_role command.

We now allow to change a user role to moderator and to change
role from moderator to any other role using change_user_role
command.
This commit is contained in:
sahil839
2021-04-23 01:33:03 +05:30
committed by Tim Abbott
parent a84725de9b
commit 4f716d4ad8
2 changed files with 11 additions and 1 deletions

View File

@@ -1406,6 +1406,7 @@ class UserProfile(AbstractBaseUser, PermissionsMixin):
ROLE_ID_TO_NAME_MAP = {
ROLE_REALM_OWNER: gettext_lazy("Organization owner"),
ROLE_REALM_ADMINISTRATOR: gettext_lazy("Organization administrator"),
ROLE_MODERATOR: gettext_lazy("Moderator"),
ROLE_MEMBER: gettext_lazy("Member"),
ROLE_GUEST: gettext_lazy("Guest"),
}