From be5a476aaf5738e9712cfaf6e13b450fa5adc29c Mon Sep 17 00:00:00 2001 From: silicons <2003111+silicons@users.noreply.github.com> Date: Fri, 15 Apr 2022 19:35:56 -0700 Subject: [PATCH] fixes being unable to access own notes (#15599) * Update sql_message_system.dm * not webeditting Co-authored-by: DeltaFire --- code/modules/admin/sql_message_system.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/admin/sql_message_system.dm b/code/modules/admin/sql_message_system.dm index 9193f0b077..72b63da2ef 100644 --- a/code/modules/admin/sql_message_system.dm +++ b/code/modules/admin/sql_message_system.dm @@ -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, "Failed to establish database connection.", confidential = TRUE)