Commit 57c2bd8d authored by Piotr Gawron's avatar Piotr Gawron
Browse files

reducing privileges triggers page refresh

parent 5d0a570c
minerva (14.0.0~beta.2) unstable; urgency=low
* Bug fix: allow user to remove own comments (#931)
* Bug fix: validation of project name length is provided (#950)
* Bug fix: after reducing privileges on himself interface is refreshed (#948)
-- Piotr Gawron <piotr.gawron@uni.lu> Mon, 16 Sep 2019 21:00:00 +0200
......
......@@ -225,7 +225,13 @@ EditUserDialog.prototype.createGeneralTabContent = function () {
} else {
GuiConnector.alert("Invalid role: " + role);
}
return Promise.all(promises);
return Promise.all(promises).then(function () {
return self.getServerConnector().getLoggedUser();
}).then(function (loggedUser) {
if (loggedUser.getLogin() === self.getUser().getLogin()) {
window.location.reload(false);
}
});
}
);
return result;
......
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