diff --git a/nginx/lang/en b/nginx/lang/en index f20bf7fc3..d8f6f919a 100644 --- a/nginx/lang/en +++ b/nginx/lang/en @@ -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 diff --git a/nginx/restart.cgi b/nginx/restart.cgi index 950adef8b..3ebb1a01b 100755 --- a/nginx/restart.cgi +++ b/nginx/restart.cgi @@ -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',