diff --git a/htdocs/accountancy/customer/index.php b/htdocs/accountancy/customer/index.php index 13aa7883222..079e05c406b 100644 --- a/htdocs/accountancy/customer/index.php +++ b/htdocs/accountancy/customer/index.php @@ -47,7 +47,7 @@ if (!isModEnabled('accounting')) { if ($user->socid > 0) { accessforbidden(); } -if ($user->hasRight('accounting', 'bind', 'write')) { +if (!$user->hasRight('accounting', 'bind', 'write')) { accessforbidden(); }