From ffba1f0bec537fc3815b79091f69bfa60f0cfd85 Mon Sep 17 00:00:00 2001 From: jamiesensei Date: Thu, 16 Aug 2007 05:20:35 +0000 Subject: [PATCH] added some comments --- question/type/questiontype.php | 3 +++ 1 file changed, 3 insertions(+) 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; } -- 2.39.5