diff --git a/main/course_description/index.php b/main/course_description/index.php index eb18d01132..2d42ca88b1 100644 --- a/main/course_description/index.php +++ b/main/course_description/index.php @@ -1,4 +1,4 @@ - "#", "name" => get_lang('Assessment')); if(isset($_GET['description_id']) && $_GET['description_id']==8) $interbreadcrumb[] = array ("url" => "#", "name" => get_lang('NewBloc')); +api_protect_course_script(); + Display :: display_header($nameTools, "Description"); api_display_tool_title($nameTools); -api_protect_course_script(); /* diff --git a/main/course_home/course_home.php b/main/course_home/course_home.php index c617fe2a24..b2aaae0edf 100644 --- a/main/course_home/course_home.php +++ b/main/course_home/course_home.php @@ -1,4 +1,4 @@ - "./document.php?curdirpath=".urlencode($_GET['dir']).$req_gid, "name" => get_lang('Documents')); if (!$is_allowed_in_course) - api_not_allowed(); + api_not_allowed(true); $is_allowedToEdit = api_is_allowed_to_edit(); if (!($is_allowedToEdit || $_SESSION['group_member_with_upload_rights'])) { - api_not_allowed(); + api_not_allowed(true); } /* ----------------------------------------------------------- diff --git a/main/document/download.php b/main/document/download.php index 61f41284ff..be28d54700 100644 --- a/main/document/download.php +++ b/main/document/download.php @@ -1,4 +1,4 @@ - \ No newline at end of file diff --git a/main/user/user.php b/main/user/user.php index 2df093ef9c..e73d96398d 100644 --- a/main/user/user.php +++ b/main/user/user.php @@ -248,6 +248,10 @@ function show_users_in_virtual_courses() } } +if(!$is_allowed_in_course){ + api_not_allowed(true); +} + /* ----------------------------------------------------------- Header @@ -285,9 +289,6 @@ if( isset($message)) MAIN CODE ============================================================================== */ -if(!$is_allowed_in_course){ - api_not_allowed(); -} //statistics event_access_tool(TOOL_USER);