blocks investigate log access without R_SENSITIVE (#15573)

* Update admin_verbs.dm

* Update admin_verbs.dm

* Update sql_message_system.dm
This commit is contained in:
silicons
2022-03-30 12:42:05 -07:00
committed by GitHub
parent f6a78bbf83
commit bfbba7cb06
2 changed files with 8 additions and 1 deletions

View File

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