fix : accountancy right management
This commit is contained in:
parent
e7e4252244
commit
a4b1c28696
@ -46,7 +46,7 @@ if ($cat_id == 0) {
|
||||
}
|
||||
|
||||
// Security check
|
||||
if (! empty($user->rights->accountancy->chartofaccount))
|
||||
if (! $user->rights->accounting-->chartofaccount)
|
||||
{
|
||||
accessforbidden();
|
||||
}
|
||||
|
||||
@ -57,7 +57,7 @@ $rowid=GETPOST('rowid','alpha');
|
||||
$code=GETPOST('code','alpha');
|
||||
|
||||
// Security access
|
||||
if (! empty($user->rights->accountancy->chartofaccount))
|
||||
if (! $user->rights->accounting-->chartofaccount)
|
||||
{
|
||||
accessforbidden();
|
||||
}
|
||||
|
||||
@ -42,7 +42,7 @@ $langs->load("salaries");
|
||||
$langs->load("loan");
|
||||
|
||||
// Security check
|
||||
if (! empty($user->rights->accountancy->chartofaccount))
|
||||
if (! $user->rights->accounting-->chartofaccount)
|
||||
{
|
||||
accessforbidden();
|
||||
}
|
||||
|
||||
@ -38,7 +38,7 @@ $langs->load("admin");
|
||||
$langs->load("accountancy");
|
||||
|
||||
// Security check
|
||||
if (empty($user->admin) || ! empty($user->rights->accountancy->chartofaccount))
|
||||
if (empty($user->admin) || ! $user->rights->accounting-->chartofaccount)
|
||||
{
|
||||
accessforbidden();
|
||||
}
|
||||
|
||||
@ -266,7 +266,7 @@ if (! empty($user->admin))
|
||||
}
|
||||
|
||||
|
||||
// Param a user $user->rights->accountancy->chartofaccount can access
|
||||
// Param a user $user->rights->accounting-->chartofaccount can access
|
||||
foreach ($list as $key)
|
||||
{
|
||||
print '<tr class="oddeven value">';
|
||||
|
||||
@ -41,7 +41,7 @@ $rowid=GETPOST('rowid','alpha');
|
||||
$code=GETPOST('code','alpha');
|
||||
|
||||
// Security access
|
||||
if (! empty($user->rights->accountancy->chartofaccount))
|
||||
if (!$user->rights->accounting->chartofaccount)
|
||||
{
|
||||
accessforbidden();
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user