From 3333fd051ff6e6feb70690782215d936cbaa245d Mon Sep 17 00:00:00 2001 From: larentoun <31931237+larentoun@users.noreply.github.com> Date: Wed, 24 Apr 2024 22:38:47 +0300 Subject: [PATCH] if you have PROCCALL rights, you can call it from VV (#25030) --- code/datums/datumvars.dm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/datums/datumvars.dm b/code/datums/datumvars.dm index 9abedd63a0d..01e94bffe15 100644 --- a/code/datums/datumvars.dm +++ b/code/datums/datumvars.dm @@ -537,7 +537,10 @@ /client/proc/view_var_Topic(href, href_list, hsrc) //This should all be moved over to datum/admins/Topic() or something ~Carn - if(!check_rights(R_ADMIN|R_MOD, FALSE) && !((href_list["datumrefresh"] || href_list["Vars"] || href_list["VarsList"]) && check_rights(R_VIEWRUNTIMES, FALSE))) + if(!check_rights(R_ADMIN|R_MOD, FALSE) \ + && !((href_list["datumrefresh"] || href_list["Vars"] || href_list["VarsList"]) && check_rights(R_VIEWRUNTIMES, FALSE)) \ + && !((href_list["proc_call"]) && check_rights(R_PROCCALL, FALSE)) \ + ) return // clients with R_VIEWRUNTIMES can still refresh the window/view references/view lists. they cannot edit anything else however. if(view_var_Topic_list(href, href_list, hsrc)) // done because you can't use UIDs with lists and I don't want to snowflake into the below check to supress warnings