Fix enable/disable user audit message

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
John Molakvoæ (skjnldsv) 2019-08-07 17:50:59 +02:00
parent 52f24b50f5
commit c327be0a75
No known key found for this signature in database
GPG Key ID: 60C25B8C072916CF
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',