mirror of
https://github.com/minetest/contentdb.git
synced 2025-01-24 23:11:33 +01:00
Increase severity of display name change audit log
This commit is contained in:
parent
dea5a52c86
commit
7e20a09499
@ -57,6 +57,8 @@ def handle_profile_edit(form, user, username):
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
user.display_name = form.display_name.data
|
user.display_name = form.display_name.data
|
||||||
|
|
||||||
|
severity = AuditSeverity.USER if current_user == user else AuditSeverity.MODERATION
|
||||||
addAuditLog(severity, current_user, "Changed display name of {} to {}"
|
addAuditLog(severity, current_user, "Changed display name of {} to {}"
|
||||||
.format(user.username, user.display_name),
|
.format(user.username, user.display_name),
|
||||||
url_for("users.profile", username=username))
|
url_for("users.profile", username=username))
|
||||||
|
Loading…
Reference in New Issue
Block a user