Skip to content

Commit 5229037

Browse files
committed
CL SQLite permissions check fixes
1 parent 2c34925 commit 5229037

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lua/blobsprofiler/shared/modules/bp_sqlite.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -487,9 +487,9 @@ blobsProfiler.RegisterSubModule("SQLite", "Execute", {
487487

488488
parentPanel.handleQueries = function(luaStateHQ, dataTable)
489489
local realmString = string.lower(luaStateHQ)
490-
if not blobsProfiler.CanAccess(ply, realmString .. "Data") then return end
491-
if not blobsProfiler.CanAccess(ply, realmString .. "Data_SQLite") then return end
492-
if not blobsProfiler.CanAccess(ply, realmString .. "Data_SQLite_Execute") then return end
490+
if not blobsProfiler.CanAccess(LocalPlayer(), realmString .. "Data") then return end
491+
if not blobsProfiler.CanAccess(LocalPlayer(), realmString .. "Data_SQLite") then return end
492+
if not blobsProfiler.CanAccess(LocalPlayer(), realmString .. "Data_SQLite_Execute") then return end
493493

494494
if resultContainer and IsValid(resultContainer) then
495495
resultContainer:Remove()

0 commit comments

Comments
 (0)