mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-23 12:08:28 +01:00
@@ -113,7 +113,7 @@
|
||||
.["id_icon"] = icon2html(target.idcard, user, sourceonly=TRUE)
|
||||
var/list/active_access = list()
|
||||
for(var/access in target.idcard?.GetAccess())
|
||||
active_access += list(list("id" = access, "name" = get_access_desc(access)))
|
||||
active_access += list(list("id" = access, "name" = SSaccess.get_access_desc(access)))
|
||||
.["target"]["active_access"] = active_access
|
||||
var/list/access_options = list()
|
||||
for(var/datum/access/acc)
|
||||
@@ -485,17 +485,17 @@
|
||||
target.idcard.access -= text2num(params["access"])
|
||||
return TRUE
|
||||
if("add_centcom")
|
||||
target.idcard.access |= get_all_centcom_access()
|
||||
target.idcard.access |= SSaccess.get_all_centcom_access()
|
||||
return TRUE
|
||||
if("rem_centcom")
|
||||
target.idcard.access -= get_all_centcom_access()
|
||||
target.idcard.access -= SSaccess.get_all_centcom_access()
|
||||
return TRUE
|
||||
if("add_station")
|
||||
target.idcard.access |= get_all_station_access()
|
||||
target.idcard.access |= SSaccess.get_all_station_access()
|
||||
target.idcard.access |= ACCESS_SYNTH
|
||||
return TRUE
|
||||
if("rem_station")
|
||||
target.idcard.access -= get_all_station_access()
|
||||
target.idcard.access -= SSaccess.get_all_station_access()
|
||||
target.idcard.access -= ACCESS_SYNTH
|
||||
return TRUE
|
||||
if("law_channel")
|
||||
|
||||
@@ -227,11 +227,11 @@ ADMIN_VERB(cmd_admin_grantfullaccess, (R_ADMIN|R_EVENT), "Grant Full Access", "G
|
||||
var/obj/item/pda/pda = H.wear_id
|
||||
id = pda.id
|
||||
id.icon_state = "gold"
|
||||
id.access = get_all_accesses().Copy()
|
||||
id.access = SSaccess.get_all_accesses().Copy()
|
||||
else
|
||||
var/obj/item/card/id/id = new/obj/item/card/id(H);
|
||||
id.icon_state = "gold"
|
||||
id.access = get_all_accesses().Copy()
|
||||
id.access = SSaccess.get_all_accesses().Copy()
|
||||
id.registered_name = H.real_name
|
||||
id.assignment = JOB_SITE_MANAGER
|
||||
id.name = "[id.registered_name]'s ID Card ([id.assignment])"
|
||||
|
||||
Reference in New Issue
Block a user