Fix output of /friendica/json for invite only and approval registration policy
This commit is contained in:
parent
a1b773e149
commit
724c4fb94d
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ function friendica_init(App $a)
|
||||||
];
|
];
|
||||||
|
|
||||||
$register_policy_int = intval(Config::get('config', 'register_policy'));
|
$register_policy_int = intval(Config::get('config', 'register_policy'));
|
||||||
if ($register_policy_int === Register::OPEN && Config::get('config', 'invitation_only')) {
|
if ($register_policy_int !== Register::CLOSED && Config::get('config', 'invitation_only')) {
|
||||||
$register_policy = 'REGISTER_INVITATION';
|
$register_policy = 'REGISTER_INVITATION';
|
||||||
} else {
|
} else {
|
||||||
$register_policy = $register_policies[$register_policy_int];
|
$register_policy = $register_policies[$register_policy_int];
|
||||||
|
|
Loading…
Reference in a new issue