From ac0b11d78276dd65a561ad0516dcd6a9dc20aa2a Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Fri, 4 Mar 2022 00:23:58 +0100 Subject: [PATCH] [MIRROR] Makes lock access on tablet researching a var [MDB IGNORE] (#11817) * Makes lock access on tablet researching a var (#65121) * Makes lock access on tablet researching a var Co-authored-by: John Willard <53777086+JohnFulpWillard@users.noreply.github.com> --- .../modules/modular_computers/file_system/programs/techweb.dm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/modules/modular_computers/file_system/programs/techweb.dm b/code/modules/modular_computers/file_system/programs/techweb.dm index 90031a4fea6..957498f3d10 100644 --- a/code/modules/modular_computers/file_system/programs/techweb.dm +++ b/code/modules/modular_computers/file_system/programs/techweb.dm @@ -11,6 +11,8 @@ transfer_access = ACCESS_RD /// Reference to global science techweb var/datum/techweb/stored_research + /// Access needed to lock/unlock the console + var/lock_access = ACCESS_RND /// Determines if the console is locked, and consequently if actions can be performed with it var/locked = FALSE /// Used for compressing data sent to the UI via static_data as payload size is of concern @@ -93,7 +95,7 @@ if(computer.obj_flags & EMAGGED) to_chat(usr, span_boldwarning("Security protocol error: Unable to access locking protocols.")) return TRUE - if(ACCESS_RND in user_id_card?.access) + if(lock_access in user_id_card?.access) locked = !locked else to_chat(usr, span_boldwarning("Unauthorized Access. Please insert research ID card."))