diff --git a/htdocs/document.php b/htdocs/document.php index 827d93f5b41..b699194f1b0 100644 --- a/htdocs/document.php +++ b/htdocs/document.php @@ -385,6 +385,16 @@ if ($modulepart) $original_file=$conf->bittorrent->dir_output.'/'.$dir.'/'.$original_file; } + // Wrapping pour Foundation module + else if ($modulepart == 'member') + { + if ($user->rights->adherent->lire || preg_match('/^specimen/i',$original_file)) + { + $accessallowed=1; + } + $original_file=$conf->adherent->dir_output.'/'.$original_file; + } + // Generic wrapping else {