mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-17 11:05:16 +01:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user