Skip to content
Snippets Groups Projects
Commit df91a95b authored by aspangaro's avatar aspangaro
Browse files

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

parent 24fddaa0
No related branches found
No related tags found
No related merge requests found
......@@ -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');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment