From 62142a0c0cedec21bda5111a212a71a1fc4f0bdc Mon Sep 17 00:00:00 2001 From: "tristan.champomier" Date: Wed, 7 Apr 2021 06:44:55 +0200 Subject: [PATCH] Added execAccountActiveAdmin() method in adminUser coordination object --- lib/object_coordination/adminuser/adminuser.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/object_coordination/adminuser/adminuser.php b/lib/object_coordination/adminuser/adminuser.php index b885143..23175be 100755 --- a/lib/object_coordination/adminuser/adminuser.php +++ b/lib/object_coordination/adminuser/adminuser.php @@ -869,12 +869,9 @@ function exportAdmin() $user_account_active = $MyUser->getAccountActive(); if( $user_account_active == "on" ) - $user_account_active = "off"; + $MyUser->setAccountActive("off"); elseif( $user_account_active == "off" ) - $user_account_active = "on"; - - //On enregistre les modifications de l'objet User - $MyUser->setAccountActive($user_account_active); + $MyUser->setAccountActive("on"); //On enregistre les paramètres $ObjUsersave = $GLOBALS["SYSTEM_MANAGER"]["USER"]->saveInstance($MyUser);