From a4758a8632b7a5480f34bfaf1d738949128a5053 Mon Sep 17 00:00:00 2001
From: jamiesensei <jamiesensei>
Date: Mon, 7 May 2007 05:12:09 +0000
Subject: [PATCH] require_login is in 'question_edit_setup' we don't need to
 call it again here.

---
 question/category.php | 1 -
 question/export.php   | 1 -
 2 files changed, 2 deletions(-)

diff --git a/question/category.php b/question/category.php
index b2a45b80fe..8f3c79102a 100644
--- a/question/category.php
+++ b/question/category.php
@@ -44,7 +44,6 @@
 
     $context = get_context_instance(CONTEXT_COURSE, $courseid);
 
-    require_login($course->id, false);
     require_capability('moodle/question:managecategory', $context);
 
     $qcobject = new question_category_object($param->page, $thispageurl);
diff --git a/question/export.php b/question/export.php
index c792ddbf2e..277c1cc67a 100644
--- a/question/export.php
+++ b/question/export.php
@@ -48,7 +48,6 @@
         print_error('nocategory','quiz');
     }
 
-    require_login($course->id, false);
 
     // check role capability
     $context = get_context_instance(CONTEXT_COURSE, $course->id);
-- 
2.39.5