From 77a219064286a1441132bb7f6e5ffefb61afe1d0 Mon Sep 17 00:00:00 2001 From: VortrexFTW Date: Wed, 9 Sep 2020 03:49:44 -0500 Subject: [PATCH] Fix discord client check for staff permission --- scripts/server/bitflag.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/server/bitflag.js b/scripts/server/bitflag.js index aebadf17..0ffe8c59 100644 --- a/scripts/server/bitflag.js +++ b/scripts/server/bitflag.js @@ -49,7 +49,7 @@ function doesClientHaveStaffPermission(client, requiredFlags) { } let staffFlags = 0; - if(isClientFromDiscord(client)) { + if(!isClientFromDiscord(client)) { staffFlags = serverData.clients[client.index].accountData.staffFlags; } else { staffFlags = getDiscordUserData(client).accountData.staffFlags;