Commit 681fb6f4 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

problem with changing user role

parent d1c2ff8e
minerva (14.0.0~beta.1) unstable; urgency=low
* Bug fix: problem with changing user role (#932)
-- Piotr Gawron <piotr.gawron@uni.lu> Tue, 3 Aug 2019 21:00:00 +0200
minerva (14.0.0~beta.0) unstable; urgency=low
* Small improvement: sorting by columns that doesn't make sense in admin
panel is disabled (#895)
......
......@@ -3581,9 +3581,9 @@
}
},
"molart": {
"version": "1.3.2",
"resolved": "https://registry.npmjs.org/molart/-/molart-1.3.2.tgz",
"integrity": "sha512-NugAwv9loJFKmoWJWW1XwpR3u4qid9zkirdyXMYVoStxZgP7xfHLq+O+orL5867WaqpBfX5ZszUMOMbfpYn5Sg==",
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/molart/-/molart-1.4.0.tgz",
"integrity": "sha512-+HPcwFZTxa3BwBcyimgsg5pCSphy6hdidYUeQ8VcMOd8UhfdmdhZAsSQkF/E31jjlwnIuYTDqLAbKE8GsX5clA==",
"dev": true
},
"mold-source-map": {
......
......@@ -205,8 +205,7 @@ EditUserDialog.prototype.createGeneralTabContent = function () {
$(result).on("click", "[name='user-role-" + self.getUser().getLogin() + "']", function () {
var field = this;
var role = $('[name="user-role-' + self.getUser().getLogin() + '"]:checked', field).val();
var role = $('[name="user-role-' + self.getUser().getLogin() + '"]:checked', result).val();
var promises = [];
if (role === "ADMIN") {
promises.push(self.grantPrivilege({privilegeType: PrivilegeType.IS_ADMIN}));
......
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