diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-11-04 08:24:37 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-11-04 08:24:37 +0000 |
commit | f4780432a1c8e3efa75427463d74c8b8838e157b (patch) | |
tree | 2d0b79977cd3daa11a314767bf5910f8eb10e54f /lib | |
parent | b315ff2d260209c2d99ee056ed974585caf9f6cf (diff) | |
download | ampache-f4780432a1c8e3efa75427463d74c8b8838e157b.tar.gz ampache-f4780432a1c8e3efa75427463d74c8b8838e157b.tar.bz2 ampache-f4780432a1c8e3efa75427463d74c8b8838e157b.zip |
account for demo mode
Diffstat (limited to 'lib')
-rw-r--r-- | lib/init.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/init.php b/lib/init.php index 154ad5f7..661d0096 100644 --- a/lib/init.php +++ b/lib/init.php @@ -258,7 +258,7 @@ if (!isset($no_session) AND conf('use_auth')) { $user = new User($_SESSION['userdata']['username']); /* If they user ID doesn't exist deny them */ - if (!$user->uid) { logout(); exit; } + if (!$user->uid AND !conf('demo_mode')) { logout(); exit; } /* Load preferences and theme */ init_preferences(); |