Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

MDL-28436 webservice : fixed missing field in query

  • Loading branch information...
commit 46d1d80388c300690eb95fdfa400b0a732a6bf8d 1 parent 1e42eed
Aparup Banerjee nebgor authored stronk7 committed

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  lib/adminlib.php
2  lib/adminlib.php
@@ -7517,7 +7517,7 @@ public function output_html($data, $query='') {
7517 7517 //TODO: in order to let the administrator delete obsolete token, split this request in multiple request or use LEFT JOIN
7518 7518
7519 7519 //here retrieve token list (including linked users firstname/lastname and linked services name)
7520   - $sql = "SELECT t.id, t.token, u.id AS userid, u.firstname, u.lastname, s.name, t.validuntil, s.id AS serviceid
  7520 + $sql = "SELECT t.id, t.token, u.id AS userid, u.firstname, u.lastname, s.name, t.iprestriction, t.validuntil, s.id AS serviceid
7521 7521 FROM {external_tokens} t, {user} u, {external_services} s
7522 7522 WHERE t.creatorid=? AND t.tokentype = ? AND s.id = t.externalserviceid AND t.userid = u.id";
7523 7523 $tokens = $DB->get_records_sql($sql, array($USER->id, EXTERNAL_TOKEN_PERMANENT));

0 comments on commit 46d1d80

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