Fix: Accountancy 4.0 - Right to access to fiscal year
This commit is contained in:
parent
248ac67af2
commit
466010a412
@ -42,7 +42,10 @@ if (! $sortorder) $sortorder="ASC";
|
|||||||
$langs->load("admin");
|
$langs->load("admin");
|
||||||
$langs->load("compta");
|
$langs->load("compta");
|
||||||
|
|
||||||
if (! $user->admin)
|
// Security check
|
||||||
|
if ($user->societe_id > 0)
|
||||||
|
accessforbidden();
|
||||||
|
if (! $user->rights->accounting->fiscalyear)
|
||||||
accessforbidden();
|
accessforbidden();
|
||||||
|
|
||||||
$error = 0;
|
$error = 0;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user