From 0647e82b57e5bc6f4046208b916520b78fe7d832 Mon Sep 17 00:00:00 2001 From: jamiesensei Date: Wed, 29 Aug 2007 03:04:01 +0000 Subject: [PATCH] check for viewall / viewmine permission for each question in a category selected for export. --- question/format.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/question/format.php b/question/format.php index ac0dcc75f2..76220530f6 100644 --- a/question/format.php +++ b/question/format.php @@ -637,7 +637,9 @@ class qformat_default { // export the question displaying message $count++; echo "

$count. ".$this->format_question_text($question)."

"; - $expout .= $this->writequestion( $question ) . "\n"; + if (question_has_capability_on($question, 'view', $question->category)){ + $expout .= $this->writequestion( $question ) . "\n"; + } } // final pre-process on exported data -- 2.39.5