]> git.mjollnir.org Git - moodle.git/commitdiff
webservice MDL-20805 fix validuntil checking (token invalid when xxx < time ())
authorjerome mouneyrac <jerome@moodle.com>
Wed, 13 Jan 2010 09:11:23 +0000 (09:11 +0000)
committerjerome mouneyrac <jerome@moodle.com>
Wed, 13 Jan 2010 09:11:23 +0000 (09:11 +0000)
webservice/lib.php

index b0a61cad87a24cc1c4c20d45288f1ab0f41b24cf..12c35aeeec70b77f12af9b8eded3da87eec3f43b 100644 (file)
@@ -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');
             }