Allow account detail editing in debug mode when prevent_registration is enabled.
This commit is contained in:
parent
3cd7a0699e
commit
97d2965d7d
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ if (!array_key_exists($settingsMode, $settingsModes)) {
|
||||||
|
|
||||||
$settingsErrors = [];
|
$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";
|
$avatarFileName = "{$app->getUserId()}.msz";
|
||||||
$avatarWidthMax = $app->getConfig()->get('Avatar', 'max_width', 'int', 4000);
|
$avatarWidthMax = $app->getConfig()->get('Avatar', 'max_width', 'int', 4000);
|
||||||
$avatarHeightMax = $app->getConfig()->get('Avatar', 'max_height', 'int', 4000);
|
$avatarHeightMax = $app->getConfig()->get('Avatar', 'max_height', 'int', 4000);
|
||||||
|
|
Loading…
Add table
Reference in a new issue