diff options
Diffstat (limited to 'apps/admin_audit/lib/actions/usermanagement.php')
-rw-r--r-- | apps/admin_audit/lib/actions/usermanagement.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/apps/admin_audit/lib/actions/usermanagement.php b/apps/admin_audit/lib/actions/usermanagement.php index 925d8b0a715..0ee192d9a31 100644 --- a/apps/admin_audit/lib/actions/usermanagement.php +++ b/apps/admin_audit/lib/actions/usermanagement.php @@ -61,6 +61,23 @@ class UserManagement extends Action { } /** + * Log enabling of users + * + * @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', + ] + ); + } + } + + /** * Logs changing of the user scope * * @param IUser $user |