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

method should always return the same type

parent ccaa3905
Pipeline #8512 passed with stage
in 2 minutes and 7 seconds
......@@ -1242,7 +1242,7 @@ ServerConnector.updateUser = function (user) {
return self.getConfiguration();
}).then(function (configuration) {
if (!canModifyPrivileges) {
return Promise.resolve();
return Promise.resolve(user);
}
return self.updateUserPrivileges({user: user, privileges: user.privilegesToExport(configuration)});
});
......
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