Fix wrong interpreted config value type
This commit is contained in:
parent
651439c233
commit
dc922e72b7
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue