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