Merge pull request #16692 from nextcloud/backport/16683/stable15

[stable15] Fix enable/disable user audit message
This commit is contained in:
Roeland Jago Douma 2019-08-08 12:27:08 +02:00 committed by GitHub
commit 6ba5b3e222
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

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',