Student Boss should not access main report page through breadcrumb's report link (main/mySpace/index.php). Report link in breadcrumbs is removed if user is student boss.

ofaj
David Nos 10 years ago
parent 982c7544e4
commit f144d81c7d
  1. 2
      main/gradebook/certificate_report.php
  2. 2
      main/mySpace/company_reports.php
  3. 2
      main/mySpace/company_reports_resumed.php
  4. 4
      main/mySpace/myStudents.php
  5. 2
      main/mySpace/student.php

@ -17,7 +17,7 @@ $this_section = SECTION_TRACKING;
api_block_anonymous_users();
$interbreadcrumb[] = array(
"url" => api_get_path(WEB_CODE_PATH) . "mySpace/index.php?".api_get_cidreq(),
"url" => api_is_student_boss()?"#":api_get_path(WEB_CODE_PATH) . "mySpace/index.php?".api_get_cidreq(),
"name" => get_lang("MySpace")
);

@ -16,7 +16,7 @@ if ($userNotAllowed) {
api_not_allowed(true);
}
$interbreadcrumb[] = array ('url' => 'index.php', 'name' => get_lang('MySpace'));
$interbreadcrumb[] = array ('url' => api_is_student_boss()?'#':'index.php', 'name' => get_lang('MySpace'));
$tool_name = get_lang('Report');
$this_section = SECTION_TRACKING;

@ -15,7 +15,7 @@ if ($userNotAllowed) {
api_not_allowed(true);
}
$interbreadcrumb[] = array('url' => 'index.php', 'name' => get_lang('MySpace'));
$interbreadcrumb[] = array('url' => api_is_student_boss()?'#':'index.php', 'name' => get_lang('MySpace'));
$tool_name = get_lang('Report');
$this_section = SECTION_TRACKING;

@ -90,7 +90,7 @@ if (isset($_GET['details'])) {
);
} else {
$interbreadcrumb[] = array (
"url" => "index.php",
"url" => api_is_student_boss()?"#":"index.php",
"name" => get_lang('MySpace')
);
if (isset ($_GET['id_coach']) && intval($_GET['id_coach']) != 0) {
@ -128,7 +128,7 @@ if (isset($_GET['details'])) {
}
} else {
$interbreadcrumb[] = array (
"url" => "index.php",
"url" => api_is_student_boss()?"#":"index.php",
"name" => get_lang('MySpace')
);
if (isset ($_GET['id_coach']) && intval($_GET['id_coach']) != 0) {

@ -19,7 +19,7 @@ api_block_anonymous_users();
$this_section = SECTION_TRACKING;
$interbreadcrumb[] = array ("url" => "index.php", "name" => get_lang('MySpace'));
$interbreadcrumb[] = array ("url" => api_is_student_boss()?"#":"index.php", "name" => get_lang('MySpace'));
if (isset($_GET["user_id"]) && $_GET["user_id"] != "" && !isset($_GET["type"])) {
$interbreadcrumb[] = array ("url" => "teachers.php", "name" => get_lang('Teachers'));

Loading…
Cancel
Save