diff --git a/squid/lang/en b/squid/lang/en index 13c6aa6b9..b93be142c 100644 --- a/squid/lang/en +++ b/squid/lang/en @@ -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 diff --git a/squid/restart.cgi b/squid/restart.cgi index 2f7de8e62..790b4297c 100755 --- a/squid/restart.cgi +++ b/squid/restart.cgi @@ -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");