summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-12-23 09:01:09 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-12-23 09:01:09 +0000
commitea8f3e685b85074d55b88a3c2ef9d6a536c173ca (patch)
tree801d4289a88dbe92d7c9bb27e038fad9242cf71e /server
parentbe699cab75c8993175a4994316b9665105c86696 (diff)
downloadampache-ea8f3e685b85074d55b88a3c2ef9d6a536c173ca.tar.gz
ampache-ea8f3e685b85074d55b88a3c2ef9d6a536c173ca.tar.bz2
ampache-ea8f3e685b85074d55b88a3c2ef9d6a536c173ca.zip
fixed API calls, cleaned up old functions that are no longer needed
Diffstat (limited to 'server')
-rw-r--r--server/xml.server.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/xml.server.php b/server/xml.server.php
index e800af2e..b4309e9d 100644
--- a/server/xml.server.php
+++ b/server/xml.server.php
@@ -47,7 +47,7 @@ if (!Config::get('access_control')) {
* Verify the existance of the Session they passed in we do allow them to
* login via this interface so we do have an exception for action=login
*/
-if ((!Access::session_exists(array(),$_REQUEST['auth'],'api') AND $_REQUEST['action'] != 'handshake') || !Access::check_network('init-api',$_SERVER['REMOTE_ADDR'],$_REQUEST['user'],'5')) {
+if ((!vauth::session_exists('api',$_REQUEST['auth']) AND $_REQUEST['action'] != 'handshake') || !Access::check_network('init-api',$_SERVER['REMOTE_ADDR'],$_REQUEST['user'],'5')) {
debug_event('Access Denied','Invalid Session or unathorized access attempt to API','5');
ob_end_clean();
echo xmlData::error('Access Denied due to ACL or unauthorized access attempt to API, attempt logged');