Browse Source

"copy_course_session.php" only allow to "global_platform_admin" BT#13144

jmontoyaa 7 years ago
parent
commit
c0cb791867
1 changed files with 7 additions and 4 deletions
  1. 7 4
      main/admin/index.php

+ 7 - 4
main/admin/index.php

@@ -321,10 +321,13 @@ $items[] = array(
     'url' => $sessionPath.'session_export.php',
     'label' => get_lang('ExportSessionListXMLCSV'),
 );
-$items[] = array(
-    'url' => '../coursecopy/copy_course_session.php',
-    'label' => get_lang('CopyFromCourseInSessionToAnotherSession')
-);
+
+if (api_is_global_platform_admin()) {
+    $items[] = array(
+        'url' => '../coursecopy/copy_course_session.php',
+        'label' => get_lang('CopyFromCourseInSessionToAnotherSession')
+    );
+}
 
 if (api_is_platform_admin()) {
     // option only visible in development mode. Enable through code if required