mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-01-03 06:01:46 +00:00
* Make DB admin ranks more useful * Avoid error message when cancelling permission toggle, allow adding localhost admins as real admins. * Lint. * Don't SQL error when a previously-unseen player connects. * Use ckey of permission editor, not mob name. * Strikethrough * Order in the list. * Deadmin, readmin, and 2fa. * Correct merge error --------- Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com>
13 lines
315 B
Plaintext
13 lines
315 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_client(R_ADMIN, FALSE, user.client))
|
|
return UI_INTERACTIVE
|
|
return UI_CLOSE
|