Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-34368: Fix broken query in so tokens are correctly checked agains…

…t the linked service
  • Loading branch information...
commit 371d354ab3eb85c7315c4982a800a6b217cd905e 1 parent 3b52187
Nathan Mares authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  webservice/lib.php
View
2  webservice/lib.php
@@ -1110,7 +1110,7 @@ protected function init_service_class() {
FROM {external_services} s
JOIN {external_services_functions} sf ON (sf.externalserviceid = s.id AND s.restrictedusers = 1)
JOIN {external_services_users} su ON (su.externalserviceid = s.id AND su.userid = :userid)
- WHERE s.enabled = 1 AND su.validuntil IS NULL OR su.validuntil < :now $wscond2";
+ WHERE s.enabled = 1 AND (su.validuntil IS NULL OR su.validuntil < :now) $wscond2";
$params = array_merge($params, array('userid'=>$USER->id, 'now'=>time()));
Please sign in to comment.
Something went wrong with that request. Please try again.