Skip to content
Snippets Groups Projects
Commit 57c2bd8d authored by Piotr Gawron's avatar Piotr Gawron
Browse files

reducing privileges triggers page refresh

parent 5d0a570c
No related branches found
No related tags found
1 merge request!929Resolve "MINERVANET - Error Report 112"
Pipeline #13863 passed
minerva (14.0.0~beta.2) unstable; urgency=low minerva (14.0.0~beta.2) unstable; urgency=low
* Bug fix: allow user to remove own comments (#931) * Bug fix: allow user to remove own comments (#931)
* Bug fix: validation of project name length is provided (#950) * 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 -- Piotr Gawron <piotr.gawron@uni.lu> Mon, 16 Sep 2019 21:00:00 +0200
......
...@@ -225,7 +225,13 @@ EditUserDialog.prototype.createGeneralTabContent = function () { ...@@ -225,7 +225,13 @@ EditUserDialog.prototype.createGeneralTabContent = function () {
} else { } else {
GuiConnector.alert("Invalid role: " + role); 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; return result;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment