From 57583c2f4a9072e7b528f94d8d86f031d9dce812 Mon Sep 17 00:00:00 2001 From: Robert O'Brien Date: Tue, 19 Oct 2021 02:49:08 +1100 Subject: [PATCH] Fixed Optin Function Changed "return true" to "return retval" as If you have permissions it would always return true even if you had opted out --- server/functions.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/functions.lua b/server/functions.lua index 2ea06c6..0817c13 100644 --- a/server/functions.lua +++ b/server/functions.lua @@ -249,7 +249,7 @@ function QBCore.Functions.IsOptin(source) local license = QBCore.Functions.GetIdentifier(src, 'license') if QBCore.Functions.HasPermission(src, 'admin') then retval = QBCore.Config.Server.PermissionList[license].optin - return true + return retval end return false end