fixes being unable to access own notes (#15599)

* Update sql_message_system.dm

* not webeditting

Co-authored-by: DeltaFire <andreoxgrievous@gmail.com>
This commit is contained in:
silicons
2022-04-15 19:35:56 -07:00
committed by GitHub
parent e4f0f39587
commit be5a476aaf

View File

@@ -369,7 +369,7 @@
qdel(query_find_message_secret)
/proc/browse_messages(type, target_ckey, index, linkless = FALSE, filter, agegate = FALSE)
if(!check_rights(R_SENSITIVE))
if((!usr || (target_ckey != usr.ckey)) && !check_rights(R_SENSITIVE))
return
if(!SSdbcore.Connect())
to_chat(usr, "<span class='danger'>Failed to establish database connection.</span>", confidential = TRUE)