management: Replace knight command with change_user_role command.

We replace knight command with change_user_role command which
allows us to change role of a user to owner, admins, member and
guest. We can also give/revoke api_super_user permission using
this command.

Tweaked by tabbott to improve the logging output and update documentation.

Fixes #16586.
This commit is contained in:
sahil839
2020-10-23 00:00:35 +05:30
committed by Tim Abbott
parent 0f11e2a361
commit a96811ab58
5 changed files with 61 additions and 73 deletions

View File

@@ -193,7 +193,7 @@ strength allowed is controlled by two settings in
API super user bots cannot be created by Zulip users, including
organization owners. They can only be created on the command
line (via `manage.py knight --permission=api_super_user`).
line (via `manage.py change_user_role api_super_user`).
## User-uploaded content