From 5e00e2dc15e78ac6dde4350bc6b0b9017400e895 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 16 Mar 2011 10:57:12 +0000 Subject: [PATCH] Fix: Permission check on bank account --- htdocs/lib/functions.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/lib/functions.lib.php b/htdocs/lib/functions.lib.php index 76423116d62..ab4f14902f3 100644 --- a/htdocs/lib/functions.lib.php +++ b/htdocs/lib/functions.lib.php @@ -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