Skip to content

Commit

Permalink
fixup! implement admin grant and revoke
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonChen666 committed Oct 10, 2023
1 parent 0a19786 commit 6dac1f6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions synadm/cli/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -595,13 +595,15 @@ def unlock(helper, user_id):
@click.pass_obj
def admin_grant(helper, user_id):
result = helper.api.user_set_admin(user_id, True)
helper.output(result)


@user.command()
@click.argument("user_id", type=str)
@click.pass_obj
def admin_revoke(helper, user_id):
result = helper.api.user_set_admin(user_id, False)
helper.output(result)


@user.command()
Expand Down

0 comments on commit 6dac1f6

Please sign in to comment.