summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-11-04 08:24:37 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-11-04 08:24:37 +0000
commitf4780432a1c8e3efa75427463d74c8b8838e157b (patch)
tree2d0b79977cd3daa11a314767bf5910f8eb10e54f /lib
parentb315ff2d260209c2d99ee056ed974585caf9f6cf (diff)
downloadampache-f4780432a1c8e3efa75427463d74c8b8838e157b.tar.gz
ampache-f4780432a1c8e3efa75427463d74c8b8838e157b.tar.bz2
ampache-f4780432a1c8e3efa75427463d74c8b8838e157b.zip
account for demo mode
Diffstat (limited to 'lib')
-rw-r--r--lib/init.php2
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();