Gitlab is now using https://gitlab.lcsb.uni.lu as it's primary address. Please update your bookmarks. FAQ.

Commit d6195844 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

Merge branch...

Merge branch '1507-adding-user-with-already-existing-login-and-changing-his-privileges-occurs-with-error' into 'master'

Resolve "adding user with already existing login and changing his privileges occurs with error"

Closes #1507

See merge request !1317
parents 0df2311b a0e88924
Pipeline #43266 passed with stage
in 22 minutes and 10 seconds
......@@ -17,6 +17,8 @@ minerva (16.0.0~beta.1) stable; urgency=medium
create/update/delete (#1509)
* Bug fix: exporting part of map as image caused removing not drawn species
from the database (#1508)
* Bug fix: adding user with already existing login and changing his
privileges occured with error (#1507)
-- Piotr Gawron <piotr.gawron@uni.lu> Wed, 9 Jun 2021 15:00:00 +0200
......
......@@ -598,6 +598,7 @@ EditUserDialog.prototype.onSaveClicked = function () {
user.setName(self.getName());
user.setSurname(self.getSurname());
return self.getServerConnector().addUser(user).catch(function (error) {
user.setLogin(undefined);
if (error instanceof ObjectExistsError) {
return Promise.reject(new ValidationError("User with given login already exists"));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment