Skip to content
Browse files

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

…t the linked service
  • Loading branch information...
1 parent 5b6f73f commit c090fe60c7bf1b452bd889944a90be283d8590b9 Nathan Mares committed with danpoltawski
Showing with 1 addition and 1 deletion.
  1. +1 −1 webservice/lib.php
View
2 webservice/lib.php
@@ -976,7 +976,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()));

0 comments on commit c090fe6

Please sign in to comment.
Something went wrong with that request. Please try again.