This commit is contained in:
Guti
2024-09-18 18:33:15 +02:00
parent 06a46a237b
commit a3c7599065
19 changed files with 2 additions and 146 deletions
@@ -66,13 +66,8 @@
return TRUE
// High security - can only be operated when the user has an ID with access on them.
<<<<<<< HEAD
var/obj/item/card/id/I = usr.GetIdCard()
if(!istype(I) || !(access_network in I.access))
=======
var/obj/item/card/id/I = usr.GetIdCard()
if(!istype(I) || !(access_network in I.GetAccess()))
>>>>>>> master
return TRUE
switch(action)
@@ -72,13 +72,8 @@ var/warrant_uid = 0
// The following actions will only be possible if the user has an ID with security access equipped. This is in line with modular computer framework's authentication methods,
// which also use RFID scanning to allow or disallow access to some functions. Anyone can view warrants, editing requires ID. This also prevents situations where you show a tablet
// to someone who is to be arrested, which allows them to change the stuff there.
<<<<<<< HEAD
var/obj/item/card/id/I = usr.GetIdCard()
if(!istype(I) || !I.registered_name || !(access_security in I.access))
=======
var/obj/item/card/id/I = usr.GetIdCard()
if(!istype(I) || !I.registered_name || !(access_security in I.GetAccess()))
>>>>>>> master
to_chat(usr, "Authentication error: Unable to locate ID with appropriate access to allow this operation.")
return