diff --git a/htdocs/accountancy/admin/account.php b/htdocs/accountancy/admin/account.php index 623cb44cb28242772294ed8a6e58a013a6ca7a5c..94ce450ff3063e5397d8f904414234a2f98dc4c7 100644 --- a/htdocs/accountancy/admin/account.php +++ b/htdocs/accountancy/admin/account.php @@ -43,7 +43,9 @@ $search_pcgtype = GETPOST("search_pcgtype"); $search_pcgsubtype = GETPOST("search_pcgsubtype"); // Security check -if (! $user->admin) +if ($user->societe_id > 0) + accessforbidden(); +if (! $user->rights->accounting->chartofaccount) accessforbidden(); $sortfield = GETPOST("sortfield", 'alpha');