Update subaccount.php

This commit is contained in:
Frédéric FRANCE 2021-10-22 22:08:38 +02:00 committed by GitHub
parent e411e23082
commit e82a07085f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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