Privacy: Make GDPR enabled by default and allow disabling it by setting disable_gdpr in configuration.php - refs #2628

pull/2629/head
Yannick Warnier 7 years ago
parent ac9adc6b12
commit 223dcb92f0
  1. 4
      main/admin/index.php
  2. 2
      main/inc/lib/social.lib.php
  3. 4
      main/install/configuration.dist.php
  4. 2
      main/social/personal_data.php

@ -534,6 +534,8 @@ if (api_is_platform_admin()) {
}
}
if (!api_get_configuration_value('disable_gdpr')) {
// Data protection
$blocks['data_privacy']['icon'] = Display::return_icon(
'platform.png',
@ -556,7 +558,7 @@ if (api_is_platform_admin()) {
$blocks['data_privacy']['items'] = $items;
$blocks['data_privacy']['extra'] = null;
$blocks['data_privacy']['search_form'] = null;
}
/* Chamilo.org */
$blocks['chamilo']['icon'] = Display::return_icon(
'platform.png',

@ -1021,7 +1021,7 @@ class SocialManager extends UserManager
';
}
if (api_get_configuration_value('enable_gdpr')) {
if (!api_get_configuration_value('disable_gdpr')) {
$active = $show == 'personal-data' ? 'active' : null;
$personalData = '
<li class="personal-data-icon '.$active.'">

@ -933,8 +933,8 @@ VALUES (2, 13, 'session_courses_read_only_mode', 'Lock Course In Session', 1, 1,
//$_configuration['allow_teachers_to_classes'] = false;
// GDPR: European's General Data Protection Rules activation option
// Set to true to automatically enable a new personal data page inside the social network menu
// $_configuration['enable_gdpr'] = false;
// Set to true to disable the new personal data page inside the social network menu
// $_configuration['disable_gdpr'] = true;
// GDPR requires users to be informed of the Data Protection Officer name and contact point
// These can only be defined here for now, but will be moved to web settings in the future.

@ -12,7 +12,7 @@ require_once __DIR__.'/../inc/global.inc.php';
api_block_anonymous_users();
if (!api_get_configuration_value('enable_gdpr')) {
if (api_get_configuration_value('disable_gdpr')) {
api_not_allowed(true);
}

Loading…
Cancel
Save