userSession->isLogged()) { return false; } $values = array( 'id' => $data['task_id'], 'owner_id' => $this->userSession->getId(), ); return $this->taskModificationModel->update($values); } /** * Check if the event data meet the action condition * * @access public * @param array $data Event data dictionary * @return bool */ public function hasRequiredCondition(array $data) { return true; } }