]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-17249 - feedbacks on the mainsite are not accessible
authoragrabs <agrabs>
Sun, 16 Nov 2008 20:48:08 +0000 (20:48 +0000)
committeragrabs <agrabs>
Sun, 16 Nov 2008 20:48:08 +0000 (20:48 +0000)
mod/feedback/complete.php
mod/feedback/version.php
mod/feedback/view.php

index 66fd68a214b507657e3fd8deeb436268766f9da6..2d360fd4add95efaa1cfbb270c16be1b9e585f94 100644 (file)
         $capabilities->complete = true;
     }
     
+    //check whether the feedback is located and! started from the mainsite
+    if($course->id == SITEID AND !$courseid) {
+        $courseid = SITEID;
+    }
+    
     //check whether the feedback is mapped to the given courseid
     if($course->id == SITEID AND !$capabilities->edititems) {
         if($DB->get_records('feedback_sitecourse_map', array('feedbackid'=>$feedback->id))) {
             }
         }
     }
-    
-    //check whether the feedback is located and! started from the mainsite
-    if($course->id == SITEID AND !$courseid) {
-        $courseid = SITEID;
-    }
         
     if($feedback->anonymous != FEEDBACK_ANONYMOUS_YES) {
         if($course->id == SITEID) {
index 7e4d01f6946bd459339bbc1a0aa19a3a3f7b15bc..5159844661cfcc407988015ae8c9d8dcb0dc44e7 100644 (file)
@@ -10,7 +10,7 @@
 */
 
    
-    $module->version = 2008073002; // The current module version (Date: YYYYMMDDXX)
+    $module->version = 2008073003; // The current module version (Date: YYYYMMDDXX)
     $module->requires = 2008072401;  // Requires this Moodle version
     $feedback_version_intern = 1; //this version is used for restore older backups
     $module->cron = 0; // Period for cron to check this module (secs)
index f774e796f88477129e7274a309a75748d604718f..33b9e34dbc98cc88660c7f64eb1a2c0415e81132 100644 (file)
         $capabilities->complete = true;
     }
     
+    //check whether the feedback is located and! started from the mainsite
+    if($course->id == SITEID AND !$courseid) {
+        $courseid = SITEID;
+    }
+    
     //check whether the feedback is mapped to the given courseid
     if($course->id == SITEID AND !$capabilities->edititems) {
         if($DB->get_records('feedback_sitecourse_map', array('feedbackid'=>$feedback->id))) {
         }
     }
     
-    //check whether the feedback is located and! started from the mainsite
-    if($course->id == SITEID AND !$courseid) {
-        $courseid = SITEID;
-    }
-    
     if($feedback->anonymous != FEEDBACK_ANONYMOUS_YES) {
         if($course->id == SITEID) {
             require_login($course->id, true);