From f9496feee697a5bc20238a58f733f6a28830f59c Mon Sep 17 00:00:00 2001 From: christianbeeznst Date: Wed, 10 Jul 2024 14:27:33 -0500 Subject: [PATCH] Internal: Add config for "access_to_personal_file_for_all" - refs BT#21826 --- src/CoreBundle/DataFixtures/SettingsCurrentFixtures.php | 6 ++++++ src/CoreBundle/Settings/PlatformSettingsSchema.php | 2 ++ 2 files changed, 8 insertions(+) diff --git a/src/CoreBundle/DataFixtures/SettingsCurrentFixtures.php b/src/CoreBundle/DataFixtures/SettingsCurrentFixtures.php index 49ce52794e..5607791b93 100644 --- a/src/CoreBundle/DataFixtures/SettingsCurrentFixtures.php +++ b/src/CoreBundle/DataFixtures/SettingsCurrentFixtures.php @@ -2132,6 +2132,12 @@ class SettingsCurrentFixtures extends Fixture implements FixtureGroupInterface 'title' => 'Webservices return user field', 'comment' => "Ask REST webservices (v2.php) to return another identifier for fields related to user ID. This is useful if the external system doesn't really deal with user IDs as they are in Chamilo, as it helps the external system match the user data return with some external data that is know to Chamilo. For example, if you use an external authentication system, you can return the extra field used to match the user with the external authentication system rather than user.id.", ], + [ + 'name' => 'access_to_personal_file_for_all', + 'title' => 'Access to personal file for all', + 'comment' => "Allows all users to access, view, and manage their personal files within the system.", + ], + ], 'language' => [ [ diff --git a/src/CoreBundle/Settings/PlatformSettingsSchema.php b/src/CoreBundle/Settings/PlatformSettingsSchema.php index 0df3f71ed3..1bbd829723 100644 --- a/src/CoreBundle/Settings/PlatformSettingsSchema.php +++ b/src/CoreBundle/Settings/PlatformSettingsSchema.php @@ -91,6 +91,7 @@ class PlatformSettingsSchema extends AbstractSettingsSchema 'redirect_index_to_url_for_logged_users' => '', 'default_menu_entry_for_course_or_session' => 'my_courses', 'notification_event' => 'false', + 'access_to_personal_file_for_all' => 'false', ] ) ->setTransformer( @@ -282,6 +283,7 @@ class PlatformSettingsSchema extends AbstractSettingsSchema ] ) ->add('notification_event', YesNoType::class) + ->add('access_to_personal_file_for_all', YesNoType::class) ; $this->updateFormFieldsFromSettingsInfo($builder);