From 59b72087f29d432f8ee92dc8fb8d5edae67889c2 Mon Sep 17 00:00:00 2001 From: Charlie <69320440+hal9000PR@users.noreply.github.com> Date: Sat, 23 Jul 2022 11:49:23 +0100 Subject: [PATCH] VV fix (#18511) --- code/datums/datumvars.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/datums/datumvars.dm b/code/datums/datumvars.dm index a0837547afb..a7000f0c760 100644 --- a/code/datums/datumvars.dm +++ b/code/datums/datumvars.dm @@ -524,8 +524,8 @@ /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)) - return + if(!check_rights(R_ADMIN|R_MOD, FALSE) && !((href_list["datumrefresh"] || href_list["Vars"] || href_list["VarsList"]) && check_rights(R_VIEWRUNTIMES, 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 return