Fix: Accountancy 4.0 - Right to access to fiscal year

This commit is contained in:
aspangaro 2016-06-05 14:14:20 +02:00
parent 248ac67af2
commit 466010a412

View File

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