Added execAccountActiveAdmin() method in adminUser coordination object

This commit is contained in:
Rooty 2021-04-07 06:44:55 +02:00
parent ba14a990c7
commit 62142a0c0c

View File

@ -869,12 +869,9 @@ function exportAdmin()
$user_account_active = $MyUser->getAccountActive(); $user_account_active = $MyUser->getAccountActive();
if( $user_account_active == "on" ) if( $user_account_active == "on" )
$user_account_active = "off"; $MyUser->setAccountActive("off");
elseif( $user_account_active == "off" ) elseif( $user_account_active == "off" )
$user_account_active = "on"; $MyUser->setAccountActive("on");
//On enregistre les modifications de l'objet User
$MyUser->setAccountActive($user_account_active);
//On enregistre les paramètres //On enregistre les paramètres
$ObjUsersave = $GLOBALS["SYSTEM_MANAGER"]["USER"]->saveInstance($MyUser); $ObjUsersave = $GLOBALS["SYSTEM_MANAGER"]["USER"]->saveInstance($MyUser);