webservice MDL-20805 fix validuntil checking (token invalid when xxx < time ())

This commit is contained in:
jerome mouneyrac 2010-01-13 09:11:23 +00:00
parent 50256f9cd1
commit 4ba8df5c1c

View 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');
}