We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aeed683 commit 1ed9fb5Copy full SHA for 1ed9fb5
[admin]/runcode/server.lua
@@ -79,14 +79,15 @@ addCommandHandler("crun",
79
-- http interface run export
80
function httpRun(commandstring)
81
if not user then outputDebugString ( "httpRun can only be called via http", 2 ) return end
82
-
+
83
-- check acl permission
84
local objectName = "user." .. getAccountName(user)
85
86
if(not hasObjectPermissionTo(objectName, "command.srun", false)) then
87
+ outputServerLog(getAccountName(user) .. " from " .. hostname .. " attempted to execute Lua code with missing acl permission (command.srun)")
88
return "Error: Permission denied"
89
end
90
91
local notReturned
92
--First we test with return
93
local commandFunction,errorMsg = loadstring("return "..commandstring)
0 commit comments