Skip to content

Commit

Permalink
Merge pull request #16683 from nextcloud/fix/audit/disabled-user-message
Browse files Browse the repository at this point in the history
Fix enable/disable user audit message
  • Loading branch information
rullzer authored Aug 8, 2019
2 parents 6b11862 + c327be0 commit 4e3ada5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/admin_audit/lib/Actions/UserManagement.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ public function change(array $params) {
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',
Expand Down

0 comments on commit 4e3ada5

Please sign in to comment.