Skip to content

Commit

Permalink
can't access documents for bank
Browse files Browse the repository at this point in the history
  • Loading branch information
frederic34 committed Oct 2, 2015
1 parent 43f09df commit d451051
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions htdocs/core/lib/files.lib.php
Expand Up @@ -2145,6 +2145,16 @@ function dol_check_secure_access_document($modulepart,$original_file,$entity,$fu
$original_file=$conf->banque->dir_output.'/bordereau/'.$original_file; // original_file should contains relative path so include the get_exdir result
}

// Wrapping for bank
else if ($modulepart == 'bank')
{
if ($fuser->rights->banque->lire)
{
$accessallowed=1;
}
$original_file=$conf->bank->dir_output.'/'.$original_file;
}

// Wrapping for export module
else if ($modulepart == 'export')
{
Expand Down

0 comments on commit d451051

Please sign in to comment.