window.onRenderCell = function(result, {row, col}) { if(result && col.name == 'name' && !userViewProjects.includes(',' + row.data.id + ',')) result[0] = {html: "
" + row.data.name + "
"}; return result; }