瀏覽代碼

Allow question manager to *edit* questions categories

Yannick Warnier 11 年之前
父節點
當前提交
7850e28260
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      main/exercice/testcategory.class.php

+ 1 - 1
main/exercice/testcategory.class.php

@@ -163,7 +163,7 @@ class Testcategory
         $courseId = $category->getCId();
 
         //Only admins can delete global categories
-        if (empty($courseId) && !api_is_platform_admin()) {
+        if (empty($courseId) && !(api_is_platform_admin() || api_is_question_manager())) {
             return false;
         }