/**
 * Returns true if the question is writeable by a certain user
 *
 * @param integer $question_id The database id of the question
 * @param integer $user_id The database id of the user
 * @result boolean True, if the question exists, otherwise False
 * @access public
 */
 function _isWriteable($question_id, $user_id)
 {
     global $ilDB;
     if ($question_id < 1 || $user_id < 1) {
         return false;
     }
     $result = $ilDB->queryF("SELECT obj_fi FROM svy_question WHERE question_id = %s", array('integer'), array($question_id));
     if ($result->numRows() == 1) {
         $row = $ilDB->fetchAssoc($result);
         $qpl_object_id = $row["obj_fi"];
         include_once "./Modules/SurveyQuestionPool/classes/class.ilObjSurveyQuestionPool.php";
         return ilObjSurveyQuestionPool::_isWriteable($qpl_object_id, $user_id);
     } else {
         return false;
     }
 }