summaryrefslogtreecommitdiffstats
path: root/play
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-11-21 08:44:21 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-11-21 08:44:21 +0000
commit9ded189f8c466838c4a1913126383ee21061e102 (patch)
tree5ca5298f3dbb5dbf30e8e66191112ce6bcc10822 /play
parent8f883bfa4554dd8894eb5236f6f06f7b49ea3225 (diff)
downloadampache-9ded189f8c466838c4a1913126383ee21061e102.tar.gz
ampache-9ded189f8c466838c4a1913126383ee21061e102.tar.bz2
ampache-9ded189f8c466838c4a1913126383ee21061e102.zip
really fixed image, and put in a quick hack on play for api access
Diffstat (limited to 'play')
-rw-r--r--play/index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/play/index.php b/play/index.php
index 72bd18e0..1efd36ef 100644
--- a/play/index.php
+++ b/play/index.php
@@ -74,7 +74,7 @@ if (Config::get('xml_rpc')) {
// If require session is set then we need to make sure we're legit
if (Config::get('require_session')) {
- if(!Stream::session_exists($sid)) {
+ if(!Stream::session_exists($sid) && !Access::session_exists(array(),$sid,'api')) {
debug_event('session_expired',"Streaming Access Denied: " . $GLOBALS['user']->username . "'s session has expired",'3');
die(_("Session Expired: please log in again at") . " " . Config::get('web_path') . "/login.php");
}