From 7dfb837766376576698ee9667bc471aec32854e9 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Tue, 14 Aug 2018 17:06:57 +0200 Subject: don't blame email address changers the information is being collected with admin_audit Signed-off-by: Arthur Schiwon --- apps/admin_audit/lib/Actions/UserManagement.php | 27 +++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) (limited to 'apps/admin_audit') diff --git a/apps/admin_audit/lib/Actions/UserManagement.php b/apps/admin_audit/lib/Actions/UserManagement.php index 9d0b237e303..d45863a1218 100644 --- a/apps/admin_audit/lib/Actions/UserManagement.php +++ b/apps/admin_audit/lib/Actions/UserManagement.php @@ -70,14 +70,25 @@ class UserManagement extends Action { * @param array $params */ public function change(array $params) { - if ($params['feature'] === 'enabled') { - $this->log( - $params['value'] === 'true' ? 'User enabled: "%s"' : 'User disabled: "%s"', - ['user' => $params['user']->getUID()], - [ - 'user', - ] - ); + switch($params['feature']) { + case 'enabled': + $this->log( + $params['value'] === 'true' ? 'User enabled: "%s"' : 'User disabled: "%s"', + ['user' => $params['user']->getUID()], + [ + 'user', + ] + ); + break; + case 'eMailAddress': + $this->log( + 'Email address changed for user %s', + ['user' => $params['user']->getUID()], + [ + 'user', + ] + ); + break; } } -- cgit v1.2.3