浏览代码

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

Yannick Warnier 11 年之前
父节点
当前提交
ad7f837682
共有 1 个文件被更改,包括 1 次插入0 次删除
  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']) {