From 97d2965d7db66c19ed7a4633f87f7ad460a8339b Mon Sep 17 00:00:00 2001 From: flashwave Date: Sun, 12 Aug 2018 15:32:07 +0200 Subject: [PATCH] Allow account detail editing in debug mode when prevent_registration is enabled. --- public/settings.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/settings.php b/public/settings.php index db965418..7af984dd 100644 --- a/public/settings.php +++ b/public/settings.php @@ -68,7 +68,7 @@ if (!array_key_exists($settingsMode, $settingsModes)) { $settingsErrors = []; -$disableAccountOptions = $app->getConfig()->get('Auth', 'prevent_registration', 'bool', false); +$disableAccountOptions = !$app->inDebugMode() && $app->getConfig()->get('Auth', 'prevent_registration', 'bool', false); $avatarFileName = "{$app->getUserId()}.msz"; $avatarWidthMax = $app->getConfig()->get('Avatar', 'max_width', 'int', 4000); $avatarHeightMax = $app->getConfig()->get('Avatar', 'max_height', 'int', 4000);