mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-34368 fix another validuntil condition
This commit is contained in:
parent
6efb36babf
commit
8e6cbb58d8
1 changed files with 1 additions and 1 deletions
|
@ -1458,7 +1458,7 @@ abstract class webservice_base_server extends webservice_server {
|
|||
FROM {external_services} s
|
||||
JOIN {external_services_functions} sf ON (sf.externalserviceid = s.id AND s.restrictedusers = 1 AND sf.functionname = :name2)
|
||||
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, 'name1'=>$function->name, 'name2'=>$function->name, 'now'=>time()));
|
||||
|
||||
$rs = $DB->get_recordset_sql($sql, $params);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue