Actually check ACL for restarting Nginx

This commit is contained in:
Jamie Cameron
2026-08-03 10:36:58 -07:00
parent fd07e5040a
commit e0fbc043c2
2 changed files with 2 additions and 0 deletions

View File

@@ -386,6 +386,7 @@ log_delete_user=Deleted user $1 in $2
stop_err=Failed to stop Nginx
stop_ecannot=You are not allowed to stop the webserver
restart_ecannot=You are not allowed to apply the webserver configuration
start_err=Failed to start Nginx
start_ecannot=You are not allowed to start the webserver

View File

@@ -7,6 +7,7 @@ require './nginx-lib.pl';
our (%text, %in, %access);
&ReadParse();
&error_setup($text{'restart_err'});
$access{'stop'} || &error($text{'restart_ecannot'});
my $test = &test_config();
$test && &error(&text('restart_etest',