diff --git a/timesheet/inc/class.timesheet_bo.inc.php b/timesheet/inc/class.timesheet_bo.inc.php index 33dfb72623..9818089b85 100644 --- a/timesheet/inc/class.timesheet_bo.inc.php +++ b/timesheet/inc/class.timesheet_bo.inc.php @@ -566,12 +566,11 @@ class timesheet_bo extends so_sql_cf } $ts_id = is_null($keys) ? $this->data['ts_id'] : $keys['ts_id']; - if (!$this->check_acl(EGW_ACL_EDIT,$ts_id)) + if (!$this->check_acl(EGW_ACL_EDIT,$ts_id) || !$this->read($ts_id,true)) { return false; } - $this->read($keys,true); $this->data['ts_status'] = $status; if ($this->save($ts_id)!=0) $ret = false;