Fixes admin rights message when player attempts to open playtime panel (#56951)

I'm using check_rights for the boolean value for tgui, not to prevent some admin proc being called. Added the argument to stop the insufficient rights message being shown.
This commit is contained in:
Timberpoes
2021-02-17 02:17:31 +00:00
committed by GitHub
parent f72be3c3a9
commit ecb2a4e1f2
+1 -1
View File
@@ -50,7 +50,7 @@
data["livingTime"] = play_records[EXP_TYPE_LIVING]
data["ghostTime"] = play_records[EXP_TYPE_GHOST]
data["isAdmin"] = check_rights(R_ADMIN)
data["isAdmin"] = check_rights(R_ADMIN, show_msg = FALSE)
return data