Skip to content

Commit 9ec4527

Browse files
skjnldsvBackportbot
authored andcommitted
Fix enable/disable user audit message
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
1 parent 89ba8c6 commit 9ec4527

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/admin_audit/lib/Actions/UserManagement.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@ public function change(array $params) {
100100
switch($params['feature']) {
101101
case 'enabled':
102102
$this->log(
103-
$params['value'] === 'true' ? 'User enabled: "%s"' : 'User disabled: "%s"',
103+
$params['value'] === true
104+
? 'User enabled: "%s"'
105+
: 'User disabled: "%s"',
104106
['user' => $params['user']->getUID()],
105107
[
106108
'user',

0 commit comments

Comments
 (0)