FIX: Add right to manage chart of accounts for non-admin
This commit is contained in:
parent
24fddaa039
commit
df91a95b9b
@ -43,7 +43,9 @@ $search_pcgtype = GETPOST("search_pcgtype");
|
|||||||
$search_pcgsubtype = GETPOST("search_pcgsubtype");
|
$search_pcgsubtype = GETPOST("search_pcgsubtype");
|
||||||
|
|
||||||
// Security check
|
// Security check
|
||||||
if (! $user->admin)
|
if ($user->societe_id > 0)
|
||||||
|
accessforbidden();
|
||||||
|
if (! $user->rights->accounting->chartofaccount)
|
||||||
accessforbidden();
|
accessforbidden();
|
||||||
|
|
||||||
$sortfield = GETPOST("sortfield", 'alpha');
|
$sortfield = GETPOST("sortfield", 'alpha');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user