Fix bug with WebGUI::User not using getIp for canUseAdminMode.
This commit is contained in:
parent
eb8735f731
commit
cc88ddbd09
2 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue