Fix another use of nocreateuser permission https://github.com/webmin/webmin/issues/449

This commit is contained in:
Jamie Cameron
2016-10-26 22:03:51 -07:00
parent 0ca5b18938
commit f34ca656a5

View File

@@ -13,7 +13,10 @@ if ($config{'sync_create'}) {
if ($_[0]->{'passmode'} == 3) {
$sql .= " with password '$_[0]->{'plainpass'}'";
}
$sql .= " nocreatedb nocreateuser";
$sql .= " nocreatedb";
if (&get_postgresql_version() < 9.5) {
$sql .= " nocreateuser";
}
&execute_sql_logged($config{'basedb'}, $sql);
}
}