mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 00:16:46 +02:00
webservice MDL-20805 fix validuntil checking (token invalid when xxx < time ())
This commit is contained in:
parent
50256f9cd1
commit
4ba8df5c1c
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue