mirror of
https://github.com/qbcore-fivem/qb-core.git
synced 2026-08-29 01:08:57 +00:00
fix(functions/permissions): has permission check
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user