diff --git a/frontend-js/src/main/js/gui/admin/EditUserDialog.js b/frontend-js/src/main/js/gui/admin/EditUserDialog.js index 04c576213f808ce29b868d230768ab643aa8c9a4..0c5d2f3c74ab41e3609e2e0d0e1dc3f968129dd8 100644 --- a/frontend-js/src/main/js/gui/admin/EditUserDialog.js +++ b/frontend-js/src/main/js/gui/admin/EditUserDialog.js @@ -398,6 +398,12 @@ EditUserDialog.prototype.initProjectsTab = function () { } return self.grantPrivilege({privilegeType: type, objectId: projectId}); } else { + if (type === PrivilegeType.READ_PROJECT) { + var writeCheckbox = $("[data='" + PrivilegeType.WRITE_PROJECT + ":" + data[1] + "']", self.getElement()); + if (writeCheckbox.is(":checked")) { + writeCheckbox.click(); + } + } return self.revokePrivilege({privilegeType: type, objectId: projectId}); } });