fix(functions/permissions): has permission check

This commit is contained in:
BerkieBb
2022-02-24 22:32:52 +01:00
parent c3f114b381
commit 61a5da33ad
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -321,7 +321,7 @@ function QBCore.Functions.HasPermission(source, permission)
local Player = QBCore.Functions.GetPlayer(source)
if next(QBCore.Config.Server.AllPermissions) then
for i = 1, #QBCore.Config.Server.AllPermissions do
if QBCore.Config.Server.AllPermissions[i] == permission then
if QBCore.Config.Server.AllPermissions[i] == Player.PlayerData.permission then
return true
end
end