mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-03 21:42:06 +00:00
allows editing expired and removed bans (#59431)
This is needed for the rare case that the situation described in the ban turns out to be inaccurate, so future searches for the user in the ban db don't lead admins to the wrong opinion. Creating a situation where the admin has to remember to edit the ban reason before unbanning them is kinda lame I'd love to make it so only the reason is editable, but that is far too much work for too little benefit. fixes #59424
This commit is contained in:
committed by
GitHub
parent
3ef3064c5b
commit
ef0ebaeb8d
@@ -716,8 +716,7 @@
|
||||
if(unban_datetime)
|
||||
output += "<br>Unbanned by <b>[unban_key]</b> on <b>[unban_datetime]</b> during round <b>#[unban_round_id]</b>."
|
||||
output += "</div><div class='container'><div class='reason'>[reason]</div><div class='edit'>"
|
||||
if(!expired && !unban_datetime)
|
||||
output += "<a href='?_src_=holder;[HrefToken()];editbanid=[ban_id];editbankey=[player_key];editbanip=[player_ip];editbancid=[player_cid];editbanrole=[role];editbanduration=[duration];editbanadmins=[applies_to_admins];editbanreason=[url_encode(reason)];editbanpage=[page];editbanadminkey=[admin_key]'>Edit</a><br>[unban_href]"
|
||||
output += "<a href='?_src_=holder;[HrefToken()];editbanid=[ban_id];editbankey=[player_key];editbanip=[player_ip];editbancid=[player_cid];editbanrole=[role];editbanduration=[duration];editbanadmins=[applies_to_admins];editbanreason=[url_encode(reason)];editbanpage=[page];editbanadminkey=[admin_key]'>Edit</a><br>[unban_href]"
|
||||
if(edits)
|
||||
output += "<br><a href='?_src_=holder;[HrefToken()];unbanlog=[ban_id]'>Edit log</a>"
|
||||
output += "</div></div></div>"
|
||||
|
||||
Reference in New Issue
Block a user