mirror of
https://github.com/qbcore-fivem/qb-core.git
synced 2026-08-29 03:01:34 +00:00
fix(server/main): database permission getter
This commit is contained in:
+3
-3
@@ -17,12 +17,12 @@ end)
|
||||
CreateThread(function()
|
||||
if QBCore.Config.Server.UseOldPermissionSystem then
|
||||
local result = MySQL.Sync.fetchAll('SELECT * FROM permissions', {})
|
||||
if not result[1] then return end
|
||||
if not result then return end
|
||||
for k, v in pairs(result) do
|
||||
QBCore.Config.Server.PermissionList[v.license] = {
|
||||
license = v.license,
|
||||
permission = v.permission,
|
||||
optin = true,
|
||||
optin = true
|
||||
}
|
||||
end
|
||||
else
|
||||
@@ -30,4 +30,4 @@ CreateThread(function()
|
||||
ExecuteCommand(('add_principal group.%s group.admin'):format(QBCore.Config.Server.AllPermissions[i]))
|
||||
end
|
||||
end
|
||||
end)
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user