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

🐛 Fix 422 error relating to invalid user permission #389

Merged
merged 2 commits into from
Aug 11, 2024

Conversation

aaronleopold
Copy link
Collaborator

.collect::<Vec<String>>();

let created_user = client
.user()
.create(
input.username.to_owned(),
hashed_password,
vec![
user::is_server_owner::set(false),
user::permissions::set(Some(permissions.join(","))),
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This line was responsible for adding an empty string when no permissions were provided during user creation

@aaronleopold aaronleopold requested a review from JMicheli August 10, 2024 22:55
@aaronleopold aaronleopold merged commit 7c44eb9 into develop Aug 11, 2024
6 checks passed
@aaronleopold aaronleopold deleted the al/fix-empty-permissions branch August 11, 2024 15:35
@aaronleopold aaronleopold mentioned this pull request Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant