mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
webservice MDL-20805 fix validuntil checking (token invalid when xxx < time ())
This commit is contained in:
parent
50256f9cd1
commit
4ba8df5c1c
@ -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');
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user