Files
webmin/acl/schema.cgi
Ilia Ross 5e4b937410 Fix SQL and LDAP backend permission checks
This patch fixes permission checks on the remaining SQL and LDAP backend endpoints.

Jamie, your original fix 3d0a9aeea8 onnly updated `save_sql.cgi`, but three related files still were accepting the unrelated password-edit permission.
2026-10-13 14:17:55 +02:00

23 lines
633 B
Perl
Executable File

#!/usr/local/bin/perl
# Just display the Webmin LDAP schema
use strict;
use warnings;
no warnings 'redefine';
no warnings 'uninitialized';
require './acl-lib.pl'; ## no critic
our (%in, %text, %config, %access);
$access{'sql'} || &error($text{'sql_ecannot'});
&ui_print_unbuffered_header(undef, $text{'schema_title'}, "");
print $text{'schema_desc'},"<p>\n";
print &ui_table_start(undef, undef, 2);
print &ui_table_row(undef,
"<pre>".&html_escape(&read_file_contents("webmin.schema"))."</pre>", 2);
print &ui_table_end();
print &text('schema_download', 'webmin.schema'),"<p>\n";
&ui_print_footer("", $text{'index_return'});