From: jamiesensei Date: Thu, 16 Aug 2007 05:20:35 +0000 (+0000) Subject: added some comments X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=ffba1f0bec537fc3815b79091f69bfa60f0cfd85;p=moodle.git added some comments --- diff --git a/question/type/questiontype.php b/question/type/questiontype.php index 51824748b9..c5f5755b1e 100644 --- a/question/type/questiontype.php +++ b/question/type/questiontype.php @@ -274,6 +274,9 @@ class default_questiontype { question_require_capability_on($question, 'move'); list($question->categorymoveto, $movetocontextid) = explode(',', $form->categorymoveto); } + //don't need to test add permission of category we are moving question to. + //Only categories that we have permission to add + //a question to will get through the form cleaning code for the select box. if (isset($question->qtype) && $question->qtype != RANDOM){ $question->category = $question->categorymoveto; }