mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-05 10:49:37 +02:00
Whups
This commit is contained in:
parent
56eb2ac7dc
commit
1e9aced735
1 changed files with 1 additions and 1 deletions
|
@ -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; }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue