From: parmentelat Date: Thu, 22 Mar 2018 13:36:32 +0000 (+0100) Subject: in the person registration form, we now filter out sites that either X-Git-Tag: plewww-5.2-9~3 X-Git-Url: http://git.onelab.eu/?p=plewww.git;a=commitdiff_plain;h=42bbad3f95cc80979dd5d1048279fc2d6b7ba230;hp=6f1a606468921448eda48f2c6d7650ef94ed5c44 in the person registration form, we now filter out sites that either * are sfa-created * or have a 'disabled_registration' tag set --- diff --git a/planetlab/persons/register.php b/planetlab/persons/register.php index 3b2c18d..2350d7b 100644 --- a/planetlab/persons/register.php +++ b/planetlab/persons/register.php @@ -224,8 +224,14 @@ $adm->begin(); // All defined sites // cannot register with foreign site -$adm->GetSites(array('is_public' => TRUE, 'peer_id' => NULL,'-SORT'=>'name'), - array('site_id', 'name','enabled','peer_id')); +// we also hide sites that are created by sfa +// as well as the ones that have a disabled_registration tag set +$adm->GetSites(array('is_public' => TRUE, 'peer_id' => NULL, + 'sfa_created' => NULL, + 'disabled_registration' => NULL, + '-SORT'=>'name'), + array('site_id', 'name', 'enabled', 'peer_id', + 'sfa_created', 'disabled_registration')); // All defined roles $adm->GetRoles();