mirror of
https://github.com/friendica/friendica
synced 2025-04-25 06:30:11 +00:00
Automatically close the registration when the admin is inactive
This commit is contained in:
parent
4834255acf
commit
4b695e361c
18 changed files with 49 additions and 35 deletions
|
@ -27,7 +27,6 @@ use Friendica\Core\Addon;
|
|||
use Friendica\Core\Config\Capability\IManageConfigValues;
|
||||
use Friendica\Core\KeyValueStorage\Capability\IManageKeyValuePairs;
|
||||
use Friendica\Core\L10n;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\Network\HTTPException\NotFoundException;
|
||||
use Friendica\Util\Profiler;
|
||||
use Psr\Log\LoggerInterface;
|
||||
|
@ -53,7 +52,7 @@ class Statistics extends BaseModule
|
|||
protected function rawContent(array $request = [])
|
||||
{
|
||||
$registration_open =
|
||||
intval($this->config->get('config', 'register_policy')) !== Register::CLOSED
|
||||
Register::getPolicy() !== Register::CLOSED
|
||||
&& !$this->config->get('config', 'invitation_only');
|
||||
|
||||
/// @todo mark the "service" addons and load them dynamically here
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue