Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it possible to change user type #90

Merged
merged 7 commits into from
Mar 9, 2023

Commits on Feb 3, 2023

  1. Configuration menu
    Copy the full SHA
    bbeee54 View commit details
    Browse the repository at this point in the history

Commits on Feb 22, 2023

  1. Prevent resetting user_type on other changes

    Leave out user_type in the post data entirely when user_type is not
    passed from the cli, otherwise it would be reset to 'null', which is unexpected
    behaviour. According to the admin API docs the json text for user_type is
    optional.
    JOJ0 authored Feb 22, 2023
    Configuration menu
    Copy the full SHA
    e30035a View commit details
    Browse the repository at this point in the history

Commits on Feb 26, 2023

  1. Update synadm/cli/user.py

    Co-authored-by: Jackson Chen <jackson@jacksonchen666.com>
    JOJ0 and JacksonChen666 authored Feb 26, 2023
    Configuration menu
    Copy the full SHA
    ab3bcd4 View commit details
    Browse the repository at this point in the history

Commits on Mar 7, 2023

  1. Change handling of "setting user-type to null"

    Remove --clear-user-type option from user modify command and support an
    argument named 'regular' that submits a value of 'null' which effectively
    creates a default/regular matrix user.
    JOJ0 committed Mar 7, 2023
    Configuration menu
    Copy the full SHA
    dba8132 View commit details
    Browse the repository at this point in the history
  2. Workaround poorly designed user_modify api method

    by simply passing a string. Otherwise setting the user_type to None (which
    means value 'null' in submitted json) would not be possible.
    JOJ0 committed Mar 7, 2023
    Configuration menu
    Copy the full SHA
    891944a View commit details
    Browse the repository at this point in the history
  3. Refactor a condition in user_modify method to

    a oneline-condition.
    JOJ0 committed Mar 7, 2023
    Configuration menu
    Copy the full SHA
    72b01bb View commit details
    Browse the repository at this point in the history

Commits on Mar 9, 2023

  1. Update synadm/api.py

    Co-authored-by: Jackson Chen <jackson@jacksonchen666.com>
    JOJ0 and JacksonChen666 authored Mar 9, 2023
    Configuration menu
    Copy the full SHA
    188024c View commit details
    Browse the repository at this point in the history