From 4846681a39a8db7f81e610a90f7aa1b6ae49c7d0 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 29 Oct 2010 23:16:58 +0000 Subject: [PATCH] Fix: Dir for member files --- htdocs/document.php | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 {