mirror of
https://github.com/webmin/webmin.git
synced 2026-08-04 23:20:40 +01:00
Check ACLs when editing allowed hosts
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
|
||||
require './postgresql-lib.pl';
|
||||
&ReadParse();
|
||||
$access{'users'} || &error($text{'host_ecannot'});
|
||||
$v = &get_postgresql_version();
|
||||
if ($in{'new'}) {
|
||||
$type = $in{'new'};
|
||||
|
||||
@@ -4,11 +4,12 @@
|
||||
|
||||
require './postgresql-lib.pl';
|
||||
&ReadParse();
|
||||
&error_setup($text{'host_err'});
|
||||
$access{'users'} || &error($text{'host_ecannot'});
|
||||
&lock_file($hba_conf_file);
|
||||
$v = &get_postgresql_version();
|
||||
@all = &get_hba_config($v);
|
||||
$host = $all[$in{'idx'}] if (!$in{'new'});
|
||||
&error_setup($text{'host_err'});
|
||||
|
||||
if ($in{'delete'}) {
|
||||
# delete one host
|
||||
|
||||
Reference in New Issue
Block a user