Allow account detail editing in debug mode when prevent_registration is enabled.

This commit is contained in:
flash 2018-08-12 15:32:07 +02:00
parent 3cd7a0699e
commit 97d2965d7d

View file

@ -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);