Merge pull request #16683 from nextcloud/fix/audit/disabled-user-message

Fix enable/disable user audit message
This commit is contained in:
Roeland Jago Douma 2019-08-08 08:20:06 +02:00 committed by GitHub
commit 4e3ada512d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -100,7 +100,9 @@ class UserManagement extends Action {
switch($params['feature']) {
case 'enabled':
$this->log(
$params['value'] === 'true' ? 'User enabled: "%s"' : 'User disabled: "%s"',
$params['value'] === true
? 'User enabled: "%s"'
: 'User disabled: "%s"',
['user' => $params['user']->getUID()],
[
'user',