From c908cf925f0f643ac392ca3f7616147ffde1225f Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 19 Aug 2008 21:08:14 +0000 Subject: [PATCH] Fix: Bad setter --- 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 e2cec9ace1c..ac94cdf1d4e 100644 --- a/htdocs/lib/functions.lib.php +++ b/htdocs/lib/functions.lib.php @@ -1363,7 +1363,7 @@ function restrictedArea($user, $feature='societe', $objectid=0, $dbtablename='', } else if (! empty($feature2)) // This should be used for future changes { - if (! $user->rights->$feature->$feature2->write) $readok=0; + if (! $user->rights->$feature->$feature2->write) $createok=0; } else if (! empty($feature)) // This is for old permissions {