From 862a1c71d56885db836f0fddd53c148bcdb33623 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 28 Mar 2011 08:24:28 +0000 Subject: [PATCH] Fix: Can not remove a file --- htdocs/lib/functions.lib.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/htdocs/lib/functions.lib.php b/htdocs/lib/functions.lib.php index 03ec3e55ed0..a0fef38cb7a 100644 --- a/htdocs/lib/functions.lib.php +++ b/htdocs/lib/functions.lib.php @@ -1879,6 +1879,10 @@ function restrictedArea($user, $features='societe', $objectid=0, $dbtablename='' { if (! $user->rights->banque->cheque) $deleteok=0; } + else if ($feature == 'ecm') + { + if (! $user->rights->ecm->upload) $deleteok=0; + } else if (! empty($feature2)) // This should be used for future changes { if (empty($user->rights->$feature->$feature2->supprimer)