Unfortunately, the code posted above has no effect on displayed rows. So, after looking closer, I came up with my version.
Open the file
lib/Schedule.class.phpIn the function
function Schedule($scheduleid, $scheduleType = ALL) {
replace the line
$this->machids = $this->db->get_mach_ids($this->scheduleid); // Get all resource info
with this code:
$temp_machids = $this->db->get_mach_ids($this->scheduleid); // Get all resource info
if($temp_machids !== false) {
foreach($temp_machids as $mach) {
if ($this->user->has_perm($mach['machid'])) {
$this->machids[] = $mach;
}
}
}