From 64b9725f509fef3038e62c92fe63686dbbc0b23f Mon Sep 17 00:00:00 2001 From: "tristan.champomier" Date: Thu, 1 Apr 2021 17:46:32 +0200 Subject: [PATCH] Fixed issue #47 --- lib/system/system_coordination/coordinationobj.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/system/system_coordination/coordinationobj.php b/lib/system/system_coordination/coordinationobj.php index 74cc58c..f80f202 100755 --- a/lib/system/system_coordination/coordinationobj.php +++ b/lib/system/system_coordination/coordinationobj.php @@ -858,7 +858,9 @@ var $archivage= null; $NewRight=$GLOBALS["SYSTEM_MANAGER"]["RIGHT"]->saveInstance($NewRight); // Suppression de la cache - $GLOBALS["SYSTEM_MANAGER"]["PERMISSION_CACHE"]->EmptyCache(); + if( DATA_ACCES_CACHE_PERMISSION ) + $GLOBALS["SYSTEM_MANAGER"]["PERMISSION_CACHE"]->EmptyCache(); + return "msgSave"; }else{ return "wrongArgument"; @@ -918,7 +920,9 @@ var $archivage= null; //Effacage $RightToDelete=$GLOBALS["SYSTEM_MANAGER"]["RIGHT"]->deleteInstance($RightToDelete); //Suppression de la cache - $GLOBALS["SYSTEM_MANAGER"]["PERMISSION_CACHE"]->EmptyCache(); + if( DATA_ACCES_CACHE_PERMISSION ) + $GLOBALS["SYSTEM_MANAGER"]["PERMISSION_CACHE"]->EmptyCache(); + return "msgDelete"; }else{ return "wrongArgument";