$(document).on('click', '#users_perm_save', function (event) {
var result = $('#jstree').jstree('get_selected',true);
var checkedNodes = result.filter((node)=>{
return node.state.disabled==false
}).map((checked)=>{
return checked.id
});
console.log(checkedNodes);
});