fix: pottential trigger from server side

This commit is contained in:
Linventif 2024-08-09 19:17:02 +00:00
parent bc3fae20c2
commit 43a567750e

View File

@ -1,5 +1,6 @@
concommand.Add("gmi_test_error", function(ply, cmd, args) concommand.Add("gmi_test_error", function(ply, cmd, args)
if !SERVER && !LocalPlayer():gmIntIsAdmin() then if ply && !ply:gmIntIsAdmin() then
if SERVER then return end
print("[Gmod Integration] Missing permissions to run this command") print("[Gmod Integration] Missing permissions to run this command")
return return
end end