Merge pull request #16691 from nextcloud/backport/16683/stable16

[stable16] Fix enable/disable user audit message
This commit is contained in:
Roeland Jago Douma 2019-08-08 11:07:25 +02:00 committed by GitHub
commit 6bfcf97c7f
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']) { switch($params['feature']) {
case 'enabled': case 'enabled':
$this->log( $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' => $params['user']->getUID()],
[ [
'user', 'user',