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.
httpRun
1 parent ebc29fd commit 3f98b6eCopy full SHA for 3f98b6e
[admin]/runcode/server.lua
@@ -79,6 +79,14 @@ 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
+ return "Error: Permission denied"
88
+ end
89
90
local notReturned
91
--First we test with return
92
local commandFunction,errorMsg = loadstring("return "..commandstring)
0 commit comments