Commit a581e81e authored by mbriand's avatar mbriand

Masquage des clubs

parent dd9a1d18
......@@ -238,7 +238,7 @@ else if ( isset($_REQUEST["id_asso"]) )
if ($asso->hidden)
{
$cts->add_paragraph("Club supprimé");
$cts->add_paragraph("Club supprimé", "error");
if (!$site->user->is_in_group("root")){
$site->add_contents($cts);
$site->end_page();
......
......@@ -330,7 +330,7 @@ elseif ( $_REQUEST["view"] == "anciens" )
else
{
if ( $asso->is_mailing_allowed() && !is_null($asso->id_parent) && (!$site->user->is_valid() || !$asso->is_member($site->user->id)) )
if ( $asso->is_mailing_allowed() && !is_null($asso->id_parent) && (!$site->user->is_valid() || !$asso->is_member($site->user->id)) && !$asso->hidden )
$cts->add_paragraph("Inscrivez vous pour recevoir les nouvelles de ".$asso->nom." par e-mail et participer aux discussions, c'est simple et rapide : <a href=\"../asso.php?id_asso=".$asso->id."&amp;action=selfenroll\">cliquez ici</a>");
elseif ($asso->is_mailing_allowed() && !is_null($asso->id_parent) && (!$site->user->is_valid() || $asso->is_member($site->user->id)) )
$cts->add_paragraph("Vous êtes inscrits à la mailing-list de ".$asso->nom);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment