diff --git a/htdocs/accountancy/index.php b/htdocs/accountancy/index.php
index bd48c205dae..926097c1509 100644
--- a/htdocs/accountancy/index.php
+++ b/htdocs/accountancy/index.php
@@ -117,7 +117,7 @@ if (!empty($conf->global->INVOICE_USE_SITUATION) && $conf->global->INVOICE_USE_S
print '
'; // hideobject is to start hidden
print "
\n";
print ''.$langs->trans("AccountancyAreaDescIntro")."
\n";
- if (!empty($user->rights->accounting->chartofaccount)) {
+ if ($user->hasRight('accounting', 'chartofaccount')) {
print "
\n"; print "
\n";
print load_fiche_titre(' '.$langs->trans("AccountancyAreaDescActionOnce"), '', '')."\n";