mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-19 07:12:26 +02:00
N°2363 - Fix typo
This commit is contained in:
@@ -107,7 +107,7 @@ class LoginWebPage extends NiceWebPage
|
|||||||
* @throws \CoreException
|
* @throws \CoreException
|
||||||
* @throws \CoreUnexpectedValue
|
* @throws \CoreUnexpectedValue
|
||||||
*/
|
*/
|
||||||
public static function SynchroniseProfiles(&$oUser, array $aProfiles, $sOrigin)
|
public static function SynchronizeProfiles(&$oUser, array $aProfiles, $sOrigin)
|
||||||
{
|
{
|
||||||
$oProfilesSet = $oUser->Get(‘profile_list’);
|
$oProfilesSet = $oUser->Get(‘profile_list’);
|
||||||
//delete old profiles
|
//delete old profiles
|
||||||
@@ -928,7 +928,7 @@ class LoginWebPage extends NiceWebPage
|
|||||||
{
|
{
|
||||||
$sOrigin .= " ({$_SESSION['login_mode']})";
|
$sOrigin .= " ({$_SESSION['login_mode']})";
|
||||||
}
|
}
|
||||||
$aExistingProfiles = self::SynchroniseProfiles($oUser, $aProfiles, $sOrigin);
|
$aExistingProfiles = self::SynchronizeProfiles($oUser, $aProfiles, $sOrigin);
|
||||||
if ($oUser->IsModified())
|
if ($oUser->IsModified())
|
||||||
{
|
{
|
||||||
$oUser->DBWrite();
|
$oUser->DBWrite();
|
||||||
|
|||||||
@@ -496,7 +496,7 @@ class CASUserProvisioning
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Now synchronize the profiles
|
// Now synchronize the profiles
|
||||||
LoginWebPage::SynchroniseProfiles($oUser, $aProfiles, 'CAS/LDAP Synchro');
|
LoginWebPage::SynchronizeProfiles($oUser, $aProfiles, 'CAS/LDAP Synchro');
|
||||||
|
|
||||||
phpCAS::log("Info: the user '".$oUser->GetName()."' (id=".$oUser->GetKey().") now has the following profiles: '".implode("', '", $aProfiles)."'.");
|
phpCAS::log("Info: the user '".$oUser->GetName()."' (id=".$oUser->GetKey().") now has the following profiles: '".implode("', '", $aProfiles)."'.");
|
||||||
if ($oUser->IsModified())
|
if ($oUser->IsModified())
|
||||||
|
|||||||
Reference in New Issue
Block a user