diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 400d90dcb..598406d0f 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -39,6 +39,7 @@ columns to return. - WebGUI::TabForm->addTab now returns the WebGUI::HTMLForm created. - WebGUI::AssetLineage::getLineage can now limit the number of records returned + - fix: IP addresses for adminModeSubnets not using X-Forwarded-For properly 7.2.3 - fix: minor bug with new template vars in Auth::createAccount diff --git a/lib/WebGUI/User.pm b/lib/WebGUI/User.pm index 749b4e32b..089a6a4d4 100644 --- a/lib/WebGUI/User.pm +++ b/lib/WebGUI/User.pm @@ -132,7 +132,7 @@ sub canUseAdminMode { my $pass = 1; my $subnets = $self->session->config->get("adminModeSubnets") || []; if (scalar(@$subnets)) { - $pass = WebGUI::Utility::isInSubnet($self->session->env->get("REMOTE_ADDR"), $subnets); + $pass = WebGUI::Utility::isInSubnet($self->session->env->getIp, $subnets); } return $pass && $self->session->user->isInGroup(12) }