Update defaultaccounts.php

This commit is contained in:
Laurent Destailleur 2017-07-07 20:03:57 +02:00 committed by GitHub
parent d880c943ae
commit 51a9c4fad5

View File

@ -42,7 +42,7 @@ $langs->load("salaries");
$langs->load("loan");
// Security check
if (! $user->rights->accounting-->chartofaccount)
if (empty($user->rights->accounting->chartofaccount))
{
accessforbidden();
}