Commit ad61b65f authored by mbriand's avatar mbriand
Browse files

Masquage des clubs

parent a581e81e
......@@ -118,8 +118,10 @@ if ( !$folder->is_valid() )
$file->id = null;
if ( isset($_REQUEST["id_asso"]) ) // On veut le dossier racine d'une association
{
$asso = new asso($site->db);
$asso->load_by_id($_REQUEST["id_asso"]);
$asso_folder->load_by_id($_REQUEST["id_asso"]);
if ( $asso_folder->is_valid() ) // L'association existe, chouette
if ( $asso_folder->is_valid() && !$asso->hidden ) // L'association existe, chouette
{
$folder->load_root_by_asso($asso_folder->id);
if ( !$folder->is_valid() ) // Le dossier racine n'existe pas... on va le creer :)
......
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