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.
Initially there is always only one Admin user after setting the application up. As consequence
users.length <=1
will 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.