Don't ignore (global) userlogins/sendmail logging in per_user_logging mode

This commit is contained in:
Aleksander Machniak 2017-07-10 16:35:42 +02:00
parent 0c02d0d45c
commit 38e6afc903

View file

@ -298,8 +298,8 @@ class kolab_auth extends rcube_plugin
if (is_writable($user_log_dir)) {
$args['dir'] = $user_log_dir;
}
else if ($args['name'] != 'errors') {
$args['abort'] = true; // don't log if unauthenticed
else if (!in_array($args['name'], array('errors', 'userlogins', 'sendmail'))) {
$args['abort'] = true; // don't log if unauthenticed or no per-user log dir
}
}