Settings: Allow admins to see the copy_course_session.php page

Is not required to be a global platform admin anymore.
pull/3547/head
Julio Montoya 5 years ago
parent d0c364caca
commit 1754344c3c
  1. 2
      main/admin/index.php
  2. 6
      main/coursecopy/copy_course_session.php

@ -508,12 +508,10 @@ $items[] = [
'label' => get_lang('ExportSessionListXMLCSV'), 'label' => get_lang('ExportSessionListXMLCSV'),
]; ];
if (api_is_global_platform_admin()) {
$items[] = [ $items[] = [
'url' => '../coursecopy/copy_course_session.php', 'url' => '../coursecopy/copy_course_session.php',
'label' => get_lang('CopyFromCourseInSessionToAnotherSession'), 'label' => get_lang('CopyFromCourseInSessionToAnotherSession'),
]; ];
}
$allowCareer = api_get_configuration_value('allow_session_admin_read_careers'); $allowCareer = api_get_configuration_value('allow_session_admin_read_careers');

@ -1,4 +1,5 @@
<?php <?php
/* For licensing terms, see /license.txt */ /* For licensing terms, see /license.txt */
use Chamilo\CourseBundle\Component\CourseCopy\CourseBuilder; use Chamilo\CourseBundle\Component\CourseCopy\CourseBuilder;
@ -11,14 +12,13 @@ use ChamiloSession as Session;
* *
* @author Christian Fasanando * @author Christian Fasanando
* @author Julio Montoya <gugli100@gmail.com> Lots of bug fixes/improvements * @author Julio Montoya <gugli100@gmail.com> Lots of bug fixes/improvements
*
* @package chamilo.backup
*/ */
$cidReset = true; $cidReset = true;
require_once __DIR__.'/../inc/global.inc.php'; require_once __DIR__.'/../inc/global.inc.php';
$current_course_tool = TOOL_COURSE_MAINTENANCE; $current_course_tool = TOOL_COURSE_MAINTENANCE;
api_protect_global_admin_script(); api_protect_admin_script();
api_protect_limit_for_session_admin(); api_protect_limit_for_session_admin();
api_set_more_memory_and_time_limits(); api_set_more_memory_and_time_limits();

Loading…
Cancel
Save