From f84c2903d2eb6d0df0e6ae4d74ddd1d2a4976782 Mon Sep 17 00:00:00 2001 From: jmontoyaa Date: Tue, 12 Dec 2017 11:36:16 +0100 Subject: [PATCH] Block page if tab is hidden see BT#13703 Setting checked: api_get_setting('show_tabs', 'reporting') --- main/auth/my_progress.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main/auth/my_progress.php b/main/auth/my_progress.php index bdaa4cdba2..3725c40319 100755 --- a/main/auth/my_progress.php +++ b/main/auth/my_progress.php @@ -26,6 +26,10 @@ $(function() { "; +if (api_get_setting('show_tabs', 'reporting') == 'false') { + api_not_allowed(true); +} + $user_id = api_get_user_id(); $course_user_list = CourseManager::get_courses_list_by_user_id($user_id); $dates = $issues = '';