Fix permission on fiscal year
This commit is contained in:
parent
46f2f154c2
commit
989cfe749d
@ -45,7 +45,7 @@ $langs->load("compta");
|
||||
// Security check
|
||||
if ($user->societe_id > 0)
|
||||
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();
|
||||
|
||||
$error = 0;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user