Check ACL on restart

This commit is contained in:
Jamie Cameron
2026-08-03 10:46:41 -07:00
parent d7fd80936e
commit 899c1f0d24
2 changed files with 2 additions and 0 deletions

View File

@@ -667,6 +667,7 @@ start_ftsq=Failed to start Squid
start_ecannot=You are not allowed to start Squid
stop_ftsq=Failed to stop Squid
stop_ecannot=You are not allowed to stop Squid
restart_ecannot=You are not allowed to apply the Squid configuration
calamaris_ecannot=You are not allowed to access Calamaris log analysis
calamaris_title=Calamaris Log Analysis

View File

@@ -10,6 +10,7 @@ our (%text, %in, %access, $squid_version, %config);
require './squid-lib.pl';
&ReadParse();
&error_setup($text{'restart_ftrs'});
$access{'restart'} || &error($text{'restart_ecannot'});
my $err = &apply_configuration();
&error($err) if ($err);
&webmin_log("apply");