mirror of
https://github.com/quotefox/Hyper-Station-13.git
synced 2026-04-04 17:20:42 +01:00
trying to update from TGUI Next to TGUI 3, so we can later upgrade from TGUI 3 to TGUI 4.
13 lines
319 B
Plaintext
13 lines
319 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 UI_INTERACTIVE
|
|
return UI_CLOSE
|