1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-05 02:39:47 +02:00
This commit is contained in:
Karl Vollmer 2011-12-01 20:34:08 -04:00
parent 56eb2ac7dc
commit 1e9aced735

View file

@ -195,7 +195,7 @@ if (!defined('NO_SESSION') && Config::get('use_auth')) {
vauth::check_session(); vauth::check_session();
/* Create the new user */ /* Create the new user */
$GLOBALS['user'] = new User($_SESSION['userdata']['uid']); $GLOBALS['user'] = User::get_from_username($_SESSION['userdata']['username']);
/* If the user ID doesn't exist deny them */ /* If the user ID doesn't exist deny them */
if (!$GLOBALS['user']->id AND !Config::get('demo_mode')) { vauth::logout(session_id()); exit; } if (!$GLOBALS['user']->id AND !Config::get('demo_mode')) { vauth::logout(session_id()); exit; }