From 1e4f1c570e791c084e53f41c0da138d81a3d0a61 Mon Sep 17 00:00:00 2001 From: jmontoyaa Date: Thu, 21 Dec 2017 09:27:51 +0100 Subject: [PATCH] Block access to any user to "my progress" page see BT#13703 Setting added: "block_my_progress_page" --- main/auth/my_progress.php | 2 +- main/install/configuration.dist.php | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/main/auth/my_progress.php b/main/auth/my_progress.php index 3725c40319..edf41dd9d5 100755 --- a/main/auth/my_progress.php +++ b/main/auth/my_progress.php @@ -26,7 +26,7 @@ $(function() { "; -if (api_get_setting('show_tabs', 'reporting') == 'false') { +if (api_get_configuration_value('block_my_progress_page')) { api_not_allowed(true); } diff --git a/main/install/configuration.dist.php b/main/install/configuration.dist.php index 2c7acf696a..466efbdb39 100755 --- a/main/install/configuration.dist.php +++ b/main/install/configuration.dist.php @@ -708,6 +708,9 @@ $_configuration['gradebook_badge_sidebar'] = [ // This service has a cost above 60 minutes of use. //$_configuration['translate_app_google_key'] = ''; +// Block access to any user to "my progress" page +//$_configuration['block_my_progress_page'] = false; + // ------ Custom DB changes // Add user activation by confirmation email