Allows admins to delete notes they made under all circumstances (#24450)

* Allows admins to delete notes they made under all circumstances

* Actually using my brain for once!

* Should fix it
This commit is contained in:
ShiftyRail
2019-10-20 05:43:33 +02:00
committed by Kurfursten
parent 64d3474a84
commit fcbf3ce6f5
2 changed files with 2 additions and 2 deletions

View File

@@ -399,7 +399,7 @@ var/global/floorIsLava = 0
I.rank = "N/A"
update_file = 1
dat += "<font color=#008800>[I.content]</font> <i>by [I.author] ([I.rank])</i> on <i><font color=blue>[I.timestamp]</i></font> "
if(I.author == usr.key || check_rights(R_PERMISSIONS, show_msg = 0))
if(ckey(I.author) == usr.ckey || check_rights(R_PERMISSIONS, show_msg = 0)) // Older notes stored the key of the banning admin.
dat += "<A href='?src=\ref[src];remove_player_info=[key];remove_index=[i]'>Remove</A>"
dat += "<br><br>"
if(update_file)