Browse Source

Fixing issue with course visibility for teachers because of missing variable - blame dev on this

Yannick Warnier 11 years ago
parent
commit
ad7f837682
1 changed files with 1 additions and 0 deletions
  1. 1 0
      main/inc/routes.php

+ 1 - 0
main/inc/routes.php

@@ -279,6 +279,7 @@ $userPermissionsInsideACourse = function (Request $request) use ($app) {
 
         // Checking the course access
         $is_allowed_in_course = false;
+        $_course =& $courseInfo; //fix issue in code rewriting: TODO: do it properly, renaming $_course where appropriate
 
         if (isset($_course)) {
             switch ($_course['visibility']) {