Fix bug with WebGUI::User not using getIp for canUseAdminMode.

This commit is contained in:
Drake 2006-12-05 15:49:09 +00:00
parent eb8735f731
commit cc88ddbd09
2 changed files with 2 additions and 1 deletions

View file

@ -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

View file

@ -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)
}