mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-29 06:58:30 +01:00
Ability for non-admin mentors to use stuff
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
* 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(has_mentor_powers(user.client))
|
||||
return STATUS_INTERACTIVE
|
||||
return STATUS_CLOSE
|
||||
Reference in New Issue
Block a user