Fix permission on fiscal year

This commit is contained in:
Laurent Destailleur 2016-10-04 19:52:16 +02:00
parent 46f2f154c2
commit 989cfe749d

View File

@ -45,7 +45,7 @@ $langs->load("compta");
// Security check // Security check
if ($user->societe_id > 0) if ($user->societe_id > 0)
accessforbidden(); accessforbidden();
if (! $user->rights->mouvements->lire) // If we can read accounting records, we shoul be able to see fiscal year. if (! $user->rights->accounting->fiscalyear) // If we can read accounting records, we shoul be able to see fiscal year.
accessforbidden(); accessforbidden();
$error = 0; $error = 0;