From 110060be24244a8f8cfb9837bf9500aaddf2bc3a Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Fri, 23 Jan 2015 12:04:25 +0100 Subject: [PATCH] Fixes page blocked due course restriction See #7462 --- main/coursecopy/copy_course_session.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/main/coursecopy/copy_course_session.php b/main/coursecopy/copy_course_session.php index 84a7b53835..2ae717e6ba 100755 --- a/main/coursecopy/copy_course_session.php +++ b/main/coursecopy/copy_course_session.php @@ -1,5 +1,6 @@ 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';