Skip to content
Snippets Groups Projects
Commit 1e6ea5a9 authored by Till Brehm's avatar Till Brehm
Browse files

Improved user check in nginx plugin.

parent 2c49c56e
No related branches found
No related tags found
No related merge requests found
......@@ -352,9 +352,9 @@ class nginx_plugin {
return 0;
}
if(!$app->system->is_allowed_user($data['new']['system_user'], false, true)
|| !$app->system->is_allowed_group($data['new']['system_group'], false, true)) {
$app->log('Websites cannot be owned by the root user or group.', LOGLEVEL_WARN);
if($app->system->is_allowed_user($data['new']['system_user'], $app->system->is_user($data['new']['system_user']), true) == false
|| $app->system->is_allowed_group($data['new']['system_group'], $app->system->is_group($data['new']['system_group']), true) == false) {
$app->log('Websites cannot be owned by the root user or group. User: '.$data['new']['system_user'].' Group: '.$data['new']['system_group'], LOGLEVEL_WARN);
return 0;
}
......
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