mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2026-08-29 15:50:10 +01:00
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
/*!
|
||||
* Copyright (c) 2020 Aleksej Komarov
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
/**
|
||||
* tgui state: fun_state
|
||||
*
|
||||
* Checks that the user has the fun privilige.
|
||||
*/
|
||||
|
||||
GLOBAL_DATUM_INIT(fun_state, /datum/ui_state/fun_state, new)
|
||||
|
||||
/datum/ui_state/fun_state/can_use_topic(src_object, mob/user)
|
||||
if(check_rights_for(user.client, R_FUN))
|
||||
return UI_INTERACTIVE
|
||||
return UI_CLOSE
|
||||
Reference in New Issue
Block a user