Added execAccountActiveAdmin() method in adminUser coordination object
This commit is contained in:
parent
ba14a990c7
commit
62142a0c0c
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user