diff --git a/main/inc/course_document.inc.php b/main/inc/course_document.inc.php index bbc7a311c6..1625a32088 100644 --- a/main/inc/course_document.inc.php +++ b/main/inc/course_document.inc.php @@ -9,7 +9,10 @@ include_once('global.inc.php'); // name of the language file that needs to be included include(api_get_path(SYS_CODE_PATH).'document/document.inc.php'); -api_protect_course_script(); + +if(!$is_in_admin){ + api_protect_course_script(); +} //session if(isset($_GET['id_session'])) diff --git a/main/inc/lib/fckeditor/editor/dialog/fck_flash.php b/main/inc/lib/fckeditor/editor/dialog/fck_flash.php index 11372056e0..8ce3ee0115 100644 --- a/main/inc/lib/fckeditor/editor/dialog/fck_flash.php +++ b/main/inc/lib/fckeditor/editor/dialog/fck_flash.php @@ -41,6 +41,7 @@ include('../../../../../inc/global.inc.php');