Browse Source

Update export.php

Laurent Destailleur 8 years ago
parent
commit
2dd9cb61a6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      htdocs/accountancy/admin/export.php

+ 1 - 1
htdocs/accountancy/admin/export.php

@@ -38,7 +38,7 @@ $langs->load("admin");
 $langs->load("accountancy");
 
 // Security check
-if (empty($user->admin) || ! $user->rights->accounting-->chartofaccount)
+if (empty($user->admin) && empty($user->rights->accounting->chartofaccount))
 {
     accessforbidden();
 }