FIX: Add right to manage chart of accounts for non-admin

This commit is contained in:
aspangaro 2016-04-22 07:05:24 +02:00
parent 24fddaa039
commit df91a95b9b

View File

@ -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');