Files
Paradise/code/modules/tgui/states/admin_state.dm
AffectedArc07 b34e8fa301 [READY] CI now bans files with the same name (#20195)
* CI now bans files with the same name

* Part 1

* Warriorstar python tweaks

* Part Deux

* Fix unticked

* fix
2023-02-04 16:33:41 -06:00

13 lines
313 B
Plaintext

/**
* tgui state: admin_state
*
* Checks that the user is an admin, end-of-story.
*/
GLOBAL_DATUM_INIT(admin_state, /datum/ui_state/admin_state, new)
/datum/ui_state/admin_state/can_use_topic(src_object, mob/user)
if(check_rights_for(user.client, R_ADMIN))
return STATUS_INTERACTIVE
return STATUS_CLOSE