diff options
author | provokateurin <kate@provokateurin.de> | 2025-04-07 09:55:05 +0200 |
---|---|---|
committer | provokateurin <kate@provokateurin.de> | 2025-04-07 09:55:09 +0200 |
commit | 8da9c0f48cd487c5bfd1ad7f60997366a98d841e (patch) | |
tree | acd38e92917be700c9d5552f0f40ba9b8e2b227d /core | |
parent | 554dfbbdda8bbaff1901c1bee850fd035622ed65 (diff) | |
download | nextcloud-server-8da9c0f48cd487c5bfd1ad7f60997366a98d841e.tar.gz nextcloud-server-8da9c0f48cd487c5bfd1ad7f60997366a98d841e.zip |
Revert "refactor: add migration for email setting"revert/email-setting-migration
This reverts commit e7859f0dacbda051c2decb2e0d62345435ac2fd9.
Signed-off-by: provokateurin <kate@provokateurin.de>
Diffstat (limited to 'core')
-rw-r--r-- | core/Migrations/Version32000Date20250402182800.php | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/core/Migrations/Version32000Date20250402182800.php b/core/Migrations/Version32000Date20250402182800.php deleted file mode 100644 index c63e95766f5..00000000000 --- a/core/Migrations/Version32000Date20250402182800.php +++ /dev/null @@ -1,33 +0,0 @@ -<?php - -/** - * SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors - * SPDX-License-Identifier: AGPL-3.0-or-later - */ -namespace OC\Core\Migrations; - -use OCP\IConfig; -use OCP\Migration\IOutput; -use OCP\Migration\SimpleMigrationStep; - -/** - * Add `allow_user_to_change_email` system config - */ -class Version32000Date20250402182800 extends SimpleMigrationStep { - - public function __construct( - private IConfig $config, - ) { - } - - public function postSchemaChange(IOutput $output, \Closure $schemaClosure, array $options) { - $allowDisplayName = $this->config->getSystemValue('allow_user_to_change_display_name', null); - $allowEmail = $this->config->getSystemValue('allow_user_to_change_email', null); - - // if displayname was set, but not the email setting, then set the email setting to the same as the email setting - if ($allowDisplayName !== null && $allowEmail === null) { - $this->config->setSystemValue('allow_user_to_change_email', $allowDisplayName === true); - } - } - -} |