From ce447fdbd9917463a5c1f7328e432a8eacbb41ce Mon Sep 17 00:00:00 2001 From: Martin Kamerbeek Date: Fri, 10 Nov 2006 14:39:32 +0000 Subject: [PATCH] Fixed a bug where the adminbar would not show up if adminModeSubnets is missing in the config file. --- lib/WebGUI/User.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/WebGUI/User.pm b/lib/WebGUI/User.pm index 8e7a72f20..2d0e2bf11 100644 --- a/lib/WebGUI/User.pm +++ b/lib/WebGUI/User.pm @@ -129,7 +129,7 @@ Returns a boolean indicating whether the user has the basic privileges needed to sub canUseAdminMode { my $self = shift; my $pass = 1; - my $subnets = $self->session->config->get("adminModeSubnets"); + my $subnets = $self->session->config->get("adminModeSubnets") || []; if (scalar(@$subnets)) { $pass = isInSubnet($self->session->env->get("REMOTE_ADDR"), $subnets); }