Browse Source

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

pull/6336/head
Hypolite Petovan 2 years ago
parent
commit
724c4fb94d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      mod/friendica.php

+ 1
- 1
mod/friendica.php 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];


Loading…
Cancel
Save