FIX Permission for bookkeeper
This commit is contained in:
parent
0c0f950338
commit
0475cb8018
@ -53,6 +53,7 @@ $code=GETPOST('code','alpha');
|
|||||||
$allowed=$user->admin;
|
$allowed=$user->admin;
|
||||||
if ($id == 7 && ! empty($user->rights->accounting->chartofaccount)) $allowed=1; // Tax page allowed to manager of chart account
|
if ($id == 7 && ! empty($user->rights->accounting->chartofaccount)) $allowed=1; // Tax page allowed to manager of chart account
|
||||||
if ($id == 10 && ! empty($user->rights->accounting->chartofaccount)) $allowed=1; // Vat page allowed to manager of chart account
|
if ($id == 10 && ! empty($user->rights->accounting->chartofaccount)) $allowed=1; // Vat page allowed to manager of chart account
|
||||||
|
if ($id == 17 && ! empty($user->rights->accounting->chartofaccount)) $allowed=1; // Dictionary with type of expense report and accounting account allowed to manager of chart account
|
||||||
if (! $allowed) accessforbidden();
|
if (! $allowed) accessforbidden();
|
||||||
|
|
||||||
$acts[0] = "activate";
|
$acts[0] = "activate";
|
||||||
|
|||||||
@ -54,7 +54,8 @@ $optioncss = GETPOST('optioncss','alpha');
|
|||||||
|
|
||||||
// Security check
|
// Security check
|
||||||
if ($user->societe_id) $socid=$user->societe_id;
|
if ($user->societe_id) $socid=$user->societe_id;
|
||||||
$result=restrictedArea($user,'banque');
|
if (! empty($user->rights->accounting->chartofaccount)) $allowed=1; // Dictionary with list of banks accounting account allowed to manager of chart account
|
||||||
|
if (! $allowed) $result=restrictedArea($user,'banque');
|
||||||
|
|
||||||
$diroutputmassaction=$conf->bank->dir_output . '/temp/massgeneration/'.$user->id;
|
$diroutputmassaction=$conf->bank->dir_output . '/temp/massgeneration/'.$user->id;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user