More changes

This commit is contained in:
Kakarot
2022-03-29 22:33:26 -05:00
parent a528a0b127
commit f5e22066fb
2 changed files with 8 additions and 10 deletions
+4 -3
View File
@@ -301,15 +301,16 @@ function QBCore.Functions.HasPermission(source, permission)
return false
end
function QBCore.Functions.GetPermission(source)
function QBCore.Functions.GetPermissions(source)
local src = source
local perms = {}
for k,v in pairs (QBCore.Config.Server.Permissions) do
local group = ('group.%s'):format(v)
if IsPlayerAceAllowed(src, group) then
return v
perms[v] = true
end
end
return 'user'
return perms
end
-- Opt in or out of admin reports