From: jerome mouneyrac Date: Wed, 13 Jan 2010 09:11:23 +0000 (+0000) Subject: webservice MDL-20805 fix validuntil checking (token invalid when xxx < time ()) X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=4ba8df5c1cd7d2551e6dbea91bdf803940b49f62;p=moodle.git webservice MDL-20805 fix validuntil checking (token invalid when xxx < time ()) --- diff --git a/webservice/lib.php b/webservice/lib.php index b0a61cad87..12c35aeeec 100644 --- a/webservice/lib.php +++ b/webservice/lib.php @@ -160,7 +160,7 @@ abstract class webservice_server implements webservice_server_interface { throw new webservice_access_exception('Invalid token'); } - if ($token->validuntil and $token->validuntil > time()) { + if ($token->validuntil and $token->validuntil < time()) { throw new webservice_access_exception('Invalid token'); }