Update export.php

This commit is contained in:
Laurent Destailleur 2017-07-07 20:04:29 +02:00 committed by GitHub
parent 51a9c4fad5
commit 2dd9cb61a6

View File

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