Update card.php

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

View File

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