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

Add locked users property #22

Merged
merged 4 commits into from
Oct 5, 2023
Merged

Conversation

hanadi92
Copy link
Contributor

Account locking in creation or modifying (matrix-org/matrix-spec-proposals#3939) has been introduced in Synapse v1.91.0. Admin-API list users with locked property was introduced in v1.93.0rc1.

In this PR:

  • Added locked property in the body request to modify or create a user.
  • Added locked property in the response of retrieving users/user.
  • Added locked as filter parameter in listing users.

Signed-off-by: Hanadi92 <hanadi.tamimi@gmail.com>
src/users.rs Show resolved Hide resolved
src/users/create_or_modify/v2.rs Outdated Show resolved Hide resolved
src/users/list_users/v2.rs Outdated Show resolved Hide resolved
src/users/list_users/v2.rs Outdated Show resolved Hide resolved
hanadi92 and others added 2 commits October 3, 2023 12:47
Signed-off-by: Hanadi92 <hanadi.tamimi@gmail.com>
fix: update comments from review

Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
@hanadi92 hanadi92 requested a review from jplatte October 5, 2023 08:27
src/users/list_users/v2.rs Outdated Show resolved Hide resolved
@jplatte jplatte enabled auto-merge (squash) October 5, 2023 08:37
Copy link
Member

@jplatte jplatte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR by the way!

@jplatte jplatte merged commit 8d2b5a6 into ruma:main Oct 5, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants