From 897b35aeddd117409af95b270ec8309c2a564aaa Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Thu, 20 Dec 2007 07:31:00 +0000 Subject: fixed issues with user edit and create, fixed seek errors (Thx Karl Hungus) started digging myself out of the session tarded hole I created, API is broken with this commit --- lib/class/api.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/class/api.class.php') diff --git a/lib/class/api.class.php b/lib/class/api.class.php index a580bfbe..6a1707ab 100644 --- a/lib/class/api.class.php +++ b/lib/class/api.class.php @@ -72,7 +72,7 @@ class Api { // Run the query and return the passphrases as we'll have to mangle them // to figure out if they match what we've got - $sql = "SELECT * FROM `access_list` WHERE `user`='$user_id' AND `start` <= '$ip' AND `end` >= '$ip'"; + $sql = "SELECT * FROM `access_list` WHERE `type`='rpc' AND `user`='$user_id' AND `start` <= '$ip' AND `end` >= '$ip'"; $db_results = Dba::query($sql); while ($row = Dba::fetch_assoc($db_results)) { -- cgit