Fix: Added cheque menus in menus

This commit is contained in:
Laurent Destailleur
2008-05-19 19:32:08 +00:00
parent 0774d0f2b7
commit 626c235816
2 changed files with 19 additions and 3 deletions

View File

@@ -1299,6 +1299,10 @@ function restrictedArea($user, $feature='societe', $objectid=0, $dbtablename='')
{
if (! $user->rights->fournisseur->commande->lire) $readok=0;
}
else if ($feature == 'cheque')
{
if (! $user->rights->banque->cheque) $readok=0;
}
else if (! empty($feature))
{
if (! $user->rights->$feature->lire) $readok=0;
@@ -1331,6 +1335,10 @@ function restrictedArea($user, $feature='societe', $objectid=0, $dbtablename='')
{
if (! $user->rights->banque->modifier) $createok=0;
}
else if ($feature == 'cheque')
{
if (! $user->rights->banque->cheque) $createok=0;
}
else
{
if (! $user->rights->$feature->creer) $createok=0;