Skip to content
Snippets Groups Projects
Commit a5233713 authored by Marius Cramer's avatar Marius Cramer
Browse files

- ported patch

parent 86bc6556
No related branches found
No related tags found
No related merge requests found
...@@ -158,6 +158,10 @@ class validate_domain { ...@@ -158,6 +158,10 @@ class validate_domain {
if($domain['ip_address'] == '' || $domain['ipv6_address'] == ''){ if($domain['ip_address'] == '' || $domain['ipv6_address'] == ''){
if($domain['parent_domain_id'] > 0){ if($domain['parent_domain_id'] > 0){
$parent_domain = $app->db->queryOneRecord("SELECT * FROM web_domain WHERE domain_id = ?", $domain['parent_domain_id']); $parent_domain = $app->db->queryOneRecord("SELECT * FROM web_domain WHERE domain_id = ?", $domain['parent_domain_id']);
if(is_array($parent_domain) && !empty($parent_domain)){
$domain['ip_address'] = $parent_domain['ip_address'];
$domain['ipv6_address'] = $parent_domain['ipv6_address'];
}
} }
} }
......
...@@ -96,6 +96,8 @@ class shelluser_base_plugin { ...@@ -96,6 +96,8 @@ class shelluser_base_plugin {
return false; return false;
} }
if($data['new']['active'] != 'y') $data['new']['shell'] = '/bin/false';
if($app->system->is_user($data['new']['puser'])) { if($app->system->is_user($data['new']['puser'])) {
// Get the UID of the parent user // Get the UID of the parent user
...@@ -194,6 +196,8 @@ class shelluser_base_plugin { ...@@ -194,6 +196,8 @@ class shelluser_base_plugin {
return false; return false;
} }
if($data['new']['active'] != 'y') $data['new']['shell'] = '/bin/false';
if($app->system->is_user($data['new']['puser'])) { if($app->system->is_user($data['new']['puser'])) {
// Get the UID of the parent user // Get the UID of the parent user
$uid = intval($app->system->getuid($data['new']['puser'])); $uid = intval($app->system->getuid($data['new']['puser']));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment