Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-28436 webservice : fixed missing field in query

  • Loading branch information...
commit f6f2bebd0c24b4ef46574c8e002d48bfcadf2791 1 parent 6731a04
@nebgor nebgor authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/adminlib.php
View
2  lib/adminlib.php
@@ -7517,7 +7517,7 @@ public function output_html($data, $query='') {
//TODO: in order to let the administrator delete obsolete token, split this request in multiple request or use LEFT JOIN
//here retrieve token list (including linked users firstname/lastname and linked services name)
- $sql = "SELECT t.id, t.token, u.id AS userid, u.firstname, u.lastname, s.name, t.validuntil, s.id AS serviceid
+ $sql = "SELECT t.id, t.token, u.id AS userid, u.firstname, u.lastname, s.name, t.iprestriction, t.validuntil, s.id AS serviceid
FROM {external_tokens} t, {user} u, {external_services} s
WHERE t.creatorid=? AND t.tokentype = ? AND s.id = t.externalserviceid AND t.userid = u.id";
$tokens = $DB->get_records_sql($sql, array($USER->id, EXTERNAL_TOKEN_PERMANENT));
Please sign in to comment.
Something went wrong with that request. Please try again.