Check ACL for manually editing config
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
|
||||
require './samba-lib.pl';
|
||||
&ReadParse();
|
||||
$access{'manual'} || &error($text{'manual_ecannot'});
|
||||
&ui_print_header(undef, $text{'manual_title'}, "");
|
||||
|
||||
# Show the file contents
|
||||
|
||||
@@ -665,4 +665,7 @@ manual_edata=Nothing entered!
|
||||
|
||||
delete_err=Failed to delete shares
|
||||
delete_enone=None selected
|
||||
|
||||
manual_ecannot=You are not allowed to manually edit the config file
|
||||
|
||||
__norefs=1
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
|
||||
require './samba-lib.pl';
|
||||
&ReadParseMime();
|
||||
$access{'manual'} || &error($text{'manual_ecannot'});
|
||||
&error_setup($text{'manual_err'});
|
||||
|
||||
$in{'data'} =~ s/\r//g;
|
||||
|
||||
Reference in New Issue
Block a user