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 admin user api endpoint #328

Merged
merged 1 commit into from
Dec 27, 2023
Merged

Conversation

a-mnich
Copy link
Contributor

@a-mnich a-mnich commented Dec 27, 2023

Initially there is always only one Admin user after setting the application up. As consequence users.length <=1will always be true and the API endpoints responds with the error code 400 upon trying to add an additional admin user.
This fix adds a validation which checks if an admin user is removed or added.
The error response will only be sent upon removal.

@Yooooomi
Copy link
Owner

Hello! Thanks a lot for this fix, merging

@Yooooomi Yooooomi merged commit b205bfb into Yooooomi:master Dec 27, 2023
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.

2 participants