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";