mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-05-18 04:41:27 +01:00
f2b86cb5e3
* Ports ticket system overhaul from downstream * Various fixes * fixes * Update tickets.dm * Update tickets.dm * Update ticket.dm * Refactor --------- Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
13 lines
339 B
Plaintext
13 lines
339 B
Plaintext
/**
|
|
* tgui state: mentor_state
|
|
*
|
|
* Checks that the user is an mentor.
|
|
**/
|
|
|
|
GLOBAL_DATUM_INIT(tgui_mentor_state, /datum/tgui_state/mentor_state, new)
|
|
|
|
/datum/tgui_state/mentor_state/can_use_topic(src_object, mob/user)
|
|
if(check_rights_for(user.client, R_ADMIN|R_EVENT|R_DEBUG|R_MENTOR))
|
|
return STATUS_INTERACTIVE
|
|
return STATUS_CLOSE
|