Fixed issue #47

This commit is contained in:
Rooty 2021-04-01 17:46:32 +02:00
parent 289b1fa1fa
commit 64b9725f50

View File

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