Debug accountancy module

This commit is contained in:
Laurent Destailleur
2016-10-13 21:48:07 +02:00
parent b134f853e5
commit 7c1b74133a
22 changed files with 263 additions and 225 deletions

View File

@@ -1693,7 +1693,7 @@ function dol_check_secure_access_document($modulepart,$original_file,$entity,$fu
// Wrapping for accounting exports
else if ($modulepart == 'export_compta')
{
if ($fuser->rights->accounting->ventilation->dispatch || preg_match('/^specimen/i',$original_file))
if ($fuser->rights->accounting->bind->write || preg_match('/^specimen/i',$original_file))
{
$accessallowed=1;
}