[ModActions] Fix wrong order of whitelist update pattern

This commit is contained in:
Earlopain 2022-04-21 18:45:03 +02:00
parent 618c7eeeca
commit ff2c3adb79
No known key found for this signature in database
GPG Key ID: 6CFB948E15246897

View File

@ -253,7 +253,7 @@ class ModActionDecorator < ApplicationDecorator
"Edited whitelist entry"
else
if vals['old_pattern'] && vals['old_pattern'] != vals['pattern'] && CurrentUser.is_admin?
"Edited whitelist entry '#{vals['pattern']}' -> '#{vals['old_pattern']}'"
"Edited whitelist entry '#{vals['old_pattern']}' -> '#{vals['pattern']}'"
else
"Edited whitelist entry '#{CurrentUser.is_admin? ? vals['pattern'] : vals['note']}'"
end