From 989cfe749d1f964871258f49195a58ddab9d2687 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 4 Oct 2016 19:52:16 +0200 Subject: [PATCH] Fix permission on fiscal year --- htdocs/accountancy/admin/fiscalyear.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/accountancy/admin/fiscalyear.php b/htdocs/accountancy/admin/fiscalyear.php index 5b767208987..ec9e4fd76f0 100644 --- a/htdocs/accountancy/admin/fiscalyear.php +++ b/htdocs/accountancy/admin/fiscalyear.php @@ -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;