mirror of
https://github.com/webmin/webmin.git
synced 2026-08-04 15:10:41 +01:00
Actually check ACL for restarting Nginx
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user