alters Model/Pathfinder/CharacterModel#isAuthorized() to authorize characters based on session

This commit is contained in:
soneill
2021-07-29 15:48:34 +12:00
parent 567eedc9f8
commit a64fc78f75

View File

@@ -656,6 +656,7 @@ class CharacterModel extends AbstractPathfinderModel {
// no corp/ally restrictions set -> any character is allowed to login
$authStatus = 'OK';
}elseif(
// check if session_sharing is enabled and if a character is saved in session
Config::getPathfinderData('login.session_sharing') === 1 &&
is_array($this->getF3()->get(User::SESSION_KEY_CHARACTERS))
){