Commit ff0eb7510af025b65f325f207d08f79ed0dfc1a3

Authored by aspangaro
1 parent a983e2cb
Exists in 3.5 and in 1 other branch 3.6

Fix :: Modify access on page ventilation done

accountingex/customer/lignes.php
... ... @@ -52,7 +52,7 @@ $account_parent = GETPOST('account_parent');
52 52 // Security check
53 53 if ($user->societe_id > 0)
54 54 accessforbidden();
55   -if (! $user->rights->accountingex->admin)
  55 +if (! $user->rights->accountingex->access)
56 56 accessforbidden();
57 57  
58 58 $formventilation = new FormVentilation($db);
... ...
accountingex/supplier/lignes.php
... ... @@ -53,7 +53,7 @@ $langs->load("accountingex@accountingex");
53 53 // Security check
54 54 if ($user->societe_id > 0)
55 55 accessforbidden();
56   -if (! $user->rights->accountingex->admin)
  56 +if (! $user->rights->accountingex->access)
57 57 accessforbidden();
58 58  
59 59 $formventilation = new FormVentilation($db);
... ...