Check ACL for manually editing config

This commit is contained in:
Jamie Cameron
2026-08-03 10:42:02 -07:00
parent f504b1f09b
commit e33575824a
3 changed files with 5 additions and 0 deletions
+1
View File
@@ -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
+3
View File
@@ -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
+1
View File
@@ -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;