Update accountmodel.php

This commit is contained in:
Frédéric FRANCE 2021-10-22 22:07:47 +02:00 committed by GitHub
parent 9ca8dfcef9
commit 6e2f438830
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,7 +78,7 @@ $search_country_id = GETPOST('search_country_id', 'int');
if ($user->socid > 0) {
accessforbidden();
}
if (!$user->rights->accounting->chartofaccount) {
if (empty($user->rights->accounting->chartofaccount)) {
accessforbidden();
}