fix (Zap): Fixed user not getting god perms when using Zap Hosting.

This commit is contained in:
Idris Dev
2022-03-25 21:35:37 +11:00
committed by GitHub
parent d0ea8571e3
commit 1dfdb46105
+1 -1
View File
@@ -45,7 +45,7 @@ function QBCore.Player.CheckPlayerData(source, PlayerData)
PlayerData.cid = PlayerData.cid or 1
if not QBCore.Config.Server.UseOldPermissionSystem then
if PlayerData.permission then ExecuteCommand(('remove_principal identifier.%s group.%s'):format(PlayerData.license, PlayerData.permission)) end
if not PlayerData.permission and IsPlayerAceAllowed(source, 'command') and IsPlayerAceAllowed(source, 'webadmin') then -- if both aces are allowed then the person has group.admin and is a system admin
if not PlayerData.permission and IsPlayerAceAllowed(source, 'command') then -- if both aces are allowed then the person has group.admin and is a system admin
PlayerData.permission = QBCore.Config.Server.AllPermissions[1] or 'god'
end
PlayerData.permission = PlayerData.permission or 'user'