mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 11:13:16 +00:00
This ports TGUI, and makes the old nano crew monitor and the disposal bins use it as first examples.
13 lines
327 B
Plaintext
13 lines
327 B
Plaintext
/**
|
|
* tgui state: admin_state
|
|
*
|
|
* Checks that the user is an admin, end-of-story.
|
|
**/
|
|
|
|
GLOBAL_DATUM_INIT(tgui_admin_state, /datum/tgui_state/admin_state, new)
|
|
|
|
/datum/tgui_state/admin_state/can_use_topic(src_object, mob/user)
|
|
if(check_rights_for(user.client, R_ADMIN))
|
|
return STATUS_INTERACTIVE
|
|
return STATUS_CLOSE
|