From 6fceebea95ee3024aaf829fc284567231df1b4b1 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Tue, 19 Sep 2006 22:35:02 +0000 Subject: [PATCH] Always print the question list, so you can add questions to a quiz, even if you are not allowed to edit them. --- question/showbank.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/question/showbank.php b/question/showbank.php index 6c61ad6a13..392bc571fe 100644 --- a/question/showbank.php +++ b/question/showbank.php @@ -171,11 +171,9 @@ if (empty($SESSION->questioncat) or !count_records_select("question_categories", print_spacer(5,1); } - if (has_capability('moodle/question:manage', $context)) { - // continues with list of questions - print_simple_box_start("center", "100%"); - question_list($course, $SESSION->questioncat, isset($modform->instance) ? $modform->instance : 0, $SESSION->questionrecurse, $page, $perpage, $SESSION->questionshowhidden, $sortorder); - print_simple_box_end(); - } + // continues with list of questions + print_simple_box_start("center", "100%"); + question_list($course, $SESSION->questioncat, isset($modform->instance) ? $modform->instance : 0, $SESSION->questionrecurse, $page, $perpage, $SESSION->questionshowhidden, $sortorder); + print_simple_box_end(); ?> -- 2.39.5