Fix wrong interpreted config value type

This commit is contained in:
Neraste 2017-10-21 14:09:55 +02:00
parent 651439c233
commit dc922e72b7
1 changed files with 1 additions and 1 deletions

View File

@ -295,7 +295,7 @@ class RegistrationService {
// disable user if this is requested by config
$admin_approval_required = $this->config->getAppValue($this->appName, 'admin_approval_required', "no");
if ($admin_approval_required) {
if ($admin_approval_required == "yes") {
$user->setEnabled(false);
}