Skip to content

Commit

Permalink
Admin: Add config disable_my_lps_page BT#17772
Browse files Browse the repository at this point in the history
To disable the main/lp/my_list.php page
  • Loading branch information
jmontoyaa committed Oct 29, 2020
1 parent 19ba086 commit 10efb7d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions main/install/configuration.dist.php
Expand Up @@ -1614,6 +1614,9 @@
// It also enables the main/lp/my_list.php page.
//$_configuration['show_my_lps_page'] = false;

// Disables access to the main/lp/my_list.php page
//$_configuration['disable_my_lps_page'] = false;

This comment has been minimized.

Copy link
@ywarnier

ywarnier Oct 29, 2020

Member

This should replace the show_my_lps_page and should be called (by using semantic priority of terms) "my_lps_page_disable"


// When exercise is finished send results by email to users, depending the settings below:
// Requires a new Exercise Extra field type called with variable = "notifications".
/*$_configuration['exercise_finished_notification_settings'] = [
Expand Down
2 changes: 1 addition & 1 deletion main/lp/my_list.php
Expand Up @@ -8,7 +8,7 @@

require_once __DIR__.'/../inc/global.inc.php';

if (false === api_get_configuration_value('show_my_lps_page')) {
if (api_get_configuration_value('disable_my_lps_page')) {
api_not_allowed(true);
}

Expand Down

0 comments on commit 10efb7d

Please sign in to comment.