Skip to content

Commit

Permalink
MDL-34368: Fix broken query in so tokens are correctly checked agains…
Browse files Browse the repository at this point in the history
…t the linked service
  • Loading branch information
Nathan Mares authored and danpoltawski committed Jul 30, 2012
1 parent 87dd647 commit 6bfa9c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webservice/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()));

Expand Down

0 comments on commit 6bfa9c4

Please sign in to comment.