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

Fix: Accountancy 4.0 - Right to access to fiscal year

parent 248ac67a
No related branches found
No related tags found
No related merge requests found
......@@ -42,7 +42,10 @@ if (! $sortorder) $sortorder="ASC";
$langs->load("admin");
$langs->load("compta");
if (! $user->admin)
// Security check
if ($user->societe_id > 0)
accessforbidden();
if (! $user->rights->accounting->fiscalyear)
accessforbidden();
$error = 0;
......
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