From 3955b4eb224ffc015c6eff42bb1c7a11a6a352d8 Mon Sep 17 00:00:00 2001 From: v-dumas Date: Mon, 22 Dec 2025 17:49:47 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B08534=20-=20Prevent=20ending=20on=20Porta?= =?UTF-8?q?l?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/userrights.class.inc.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/core/userrights.class.inc.php b/core/userrights.class.inc.php index 118f19b39..f86a15a49 100644 --- a/core/userrights.class.inc.php +++ b/core/userrights.class.inc.php @@ -415,12 +415,7 @@ abstract class User extends cmdbAbstractObject $this->m_aCheckIssues[] = Dict::S('Class:User/Error:CurrentProfilesHaveInsufficientRights'); } $oAddon->ResetCache(); - - if (is_null($aCurrentProfiles)) { - Session::IsSet('profile_list'); - } else { - Session::Set('profile_list', $aCurrentProfiles); - } + Session::Set('profile_list', $aCurrentProfiles); } // Prevent an administrator to remove their own admin profile if (UserRights::IsAdministrator($this)) {