Commit 371b0eeb authored by Piotr Gawron's avatar Piotr Gawron
Browse files

admin has disabled checkboxes

parent f7cfd2de
......@@ -616,12 +616,10 @@ EditProjectDialog.prototype.createUsersTabContent = function () {
} else {
return self.revokePrivilege(self._userByLogin[login], type, self.getProject().getProjectId());
}
})
;
});
return result;
}
;
};
/**
*
......@@ -889,6 +887,12 @@ EditProjectDialog.prototype.userToTableRow = function (user, columns) {
var row = [];
var login = user.getLogin();
var isAdmin = user.hasPrivilege(self.getConfiguration().getPrivilegeType(PrivilegeType.IS_ADMIN));
var disabled = "";
if (isAdmin) {
disabled = " disabled "
}
row[0] = user.getName() + " " + user.getSurname() + " (" + login + ")";
for (var i = 1; i < columns.length; i++) {
var column = columns[i];
......@@ -899,7 +903,10 @@ EditProjectDialog.prototype.userToTableRow = function (user, columns) {
checked = 'checked';
}
row[i] = "<input type='checkbox' name='privilege" + "' data='" + column.privilegeType.getName() + "," + login + "' "
+ checked + "/>";
+ checked + disabled + "/>";
if (isAdmin) {
row[i] += " ADMIN";
}
} else {
throw new Error("Unsupported type: " + column.privilegeType.getValueType());
}
......
Supports Markdown
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