Skip to content

Commit 3955b4e

Browse files
committed
N°8534 - Prevent ending on Portal
1 parent 3d46fe6 commit 3955b4e

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

core/userrights.class.inc.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -415,12 +415,7 @@ public function DoCheckToWrite()
415415
$this->m_aCheckIssues[] = Dict::S('Class:User/Error:CurrentProfilesHaveInsufficientRights');
416416
}
417417
$oAddon->ResetCache();
418-
419-
if (is_null($aCurrentProfiles)) {
420-
Session::IsSet('profile_list');
421-
} else {
422-
Session::Set('profile_list', $aCurrentProfiles);
423-
}
418+
Session::Set('profile_list', $aCurrentProfiles);
424419
}
425420
// Prevent an administrator to remove their own admin profile
426421
if (UserRights::IsAdministrator($this)) {

0 commit comments

Comments
 (0)