mirror of
https://github.com/moodle/moodle.git
synced 2025-08-09 19:06:41 +02:00
Merge branch 'MDL-69050-310-allowlist' of git://github.com/mudrd8mz/moodle into MOODLE_310_STABLE
This commit is contained in:
commit
7db1a61a72
36 changed files with 381 additions and 271 deletions
|
@ -1105,7 +1105,7 @@ function external_generate_token_for_current_user($service) {
|
|||
$unsettoken = true;
|
||||
}
|
||||
|
||||
// Remove token if its ip not in whitelist.
|
||||
// Remove token if its IP is restricted.
|
||||
if (isset($token->iprestriction) and !address_in_subnet(getremoteaddr(), $token->iprestriction)) {
|
||||
$unsettoken = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue