Fix: Permission check on bank account

This commit is contained in:
Laurent Destailleur 2011-03-16 10:57:12 +00:00
parent 7586204aad
commit 5e00e2dc15

View File

@ -1862,7 +1862,7 @@ function restrictedArea($user, $features='societe', $objectid=0, $dbtablename=''
{
$sql='';
$check = array('user','usergroup','produit','service','produit|service'); // Test on entity only (Objects with no link to company)
$check = array('banque','user','usergroup','produit','service','produit|service'); // Test on entity only (Objects with no link to company)
$checksoc = array('societe'); // Test for societe object
$checkother = array('contact'); // Test on entity and link to societe. Allowed if link is empty (Ex: contacts...).
$checkproject = array('projet'); // Test for project object