From 91d57afdf92ff196092f4704d6a5098f48f91676 Mon Sep 17 00:00:00 2001 From: Max <50644368+MaxReinold@users.noreply.github.com> Date: Wed, 17 Jul 2024 22:48:30 -0700 Subject: [PATCH] fix(server/api): use api.findGroupById for password check (#7) Co-authored-by: Max <50644368+StealthSov@users.noreply.github.com> --- server/api.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/api.lua b/server/api.lua index c9b0d80..e298e2f 100644 --- a/server/api.lua +++ b/server/api.lua @@ -216,7 +216,7 @@ utils.exportHandler('AddMember', api.AddMember) ---@param password string ---@return boolean? function api.isPasswordCorrect(groupId, password) - local group = groups?[groupId] + local group = api.findGroupById(groupId) if not group then return lib.print.error('isPasswordCorrect was sent an invalid groupId :'..groupId)