Fixes page blocked due course restriction See #7462

1.9.x
Julio Montoya 10 years ago
parent 299ba99439
commit 110060be24
  1. 8
      main/coursecopy/copy_course_session.php

@ -1,5 +1,6 @@
<?php
/* For licensing terms, see /license.txt */
/**
* Copy resources from one course in a session to another one.
*
@ -7,10 +8,6 @@
* @author Julio Montoya <gugli100@gmail.com> Lots of bug fixes/improvements
* @package chamilo.backup
*/
/**
* Code
*/
/* INIT SECTION */
// Language files that need to be included
$language_file = array('coursebackup', 'admin');
@ -18,7 +15,8 @@ $language_file = array('coursebackup', 'admin');
$cidReset = true;
require_once '../inc/global.inc.php';
$current_course_tool = TOOL_COURSE_MAINTENANCE;
api_protect_course_script(true, true);
api_protect_global_admin_script();
require_once api_get_path(LIBRARY_PATH).'fileManage.lib.php';
require_once api_get_path(LIBRARY_PATH).'xajax/xajax.inc.php';

Loading…
Cancel
Save