The %access hash has to be loaded before it can be referenced

This commit is contained in:
Jamie Cameron
2026-08-03 10:29:41 -07:00
parent 09a85834e3
commit 42dde813d8
2 changed files with 2 additions and 0 deletions

View File

@@ -6,6 +6,7 @@
# * Display form to manually edit dhcpd.conf file (pass to save_text.cgi)
require './dhcpd-lib.pl';
%access = &get_module_acl();
$access{'noconfig'} && &error($text{'text_ecannot'});
$conf = &get_config();
&ui_print_header($text{'text_editor'}, $text{'text_title'}, "");

View File

@@ -7,6 +7,7 @@
require './dhcpd-lib.pl';
&ReadParseMime();
%access = &get_module_acl();
$access{'noconfig'} && &error($text{'text_ecannot'});
$conf = &get_config();