Fixed a bug where the adminbar would not show up if adminModeSubnets is missing in the config file.
This commit is contained in:
parent
d6352048c1
commit
ce447fdbd9
1 changed files with 1 additions and 1 deletions
|
|
@ -129,7 +129,7 @@ Returns a boolean indicating whether the user has the basic privileges needed to
|
||||||
sub canUseAdminMode {
|
sub canUseAdminMode {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
my $pass = 1;
|
my $pass = 1;
|
||||||
my $subnets = $self->session->config->get("adminModeSubnets");
|
my $subnets = $self->session->config->get("adminModeSubnets") || [];
|
||||||
if (scalar(@$subnets)) {
|
if (scalar(@$subnets)) {
|
||||||
$pass = isInSubnet($self->session->env->get("REMOTE_ADDR"), $subnets);
|
$pass = isInSubnet($self->session->env->get("REMOTE_ADDR"), $subnets);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue