mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-25 22:28:44 +01:00
[MIRROR] subsystem access (#12596)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com> Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
co-authored by
Kashargul
Cameron Lennox
parent
30c7a461cd
commit
9b7b9f0505
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user