Fix output of /friendica/json for invite only and approval registration policy

This commit is contained in:
Hypolite Petovan 2019-01-13 18:44:53 -05:00
parent a1b773e149
commit 724c4fb94d

View file

@ -22,7 +22,7 @@ function friendica_init(App $a)
];
$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';
} else {
$register_policy = $register_policies[$register_policy_int];