Commit 5429e67f authored by mbriand's avatar mbriand
Browse files

Masquage des clubs

parent 038f14f1
......@@ -365,7 +365,7 @@ else
"`asso2`.`id_asso` as `id_asso_parent` " .
"FROM `asso` AS `asso1`" .
"LEFT JOIN `asso` AS `asso2` ON `asso1`.`id_asso_parent`=`asso2`.`id_asso`" .
"AND `hidden`='0' ".
"AND `asso1`.`hidden`='0' ".
"ORDER BY `asso2`.`id_asso`,`asso1`.`nom_asso` ");
$site->add_contents(new treects ( "Associations", $req, 0, "id_asso", "id_asso_parent", "nom_asso" ));
......
......@@ -219,7 +219,7 @@ if ( $_REQUEST["view"] == "trombino" || $limited )
$site->add_css("css/sas.css");
if ( !is_null($asso->id_parent) && (!$site->user->is_valid() || !$asso->is_member($site->user->id)) )
if ( !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>");
$req = new requete($site->db,
......
......@@ -140,7 +140,7 @@ if ( !$folder->is_valid() )
$folder->load_by_id(1);
}
if ( !$folder->is_right($site->user,DROIT_LECTURE) )
if ( $folder->is_valid() && !$folder->is_right($site->user,DROIT_LECTURE) )
$site->error_forbidden($section,"group",$folder->id_groupe);
......
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