mirror of
https://github.com/lxsang/antd-web-apps
synced 2024-11-20 02:18:20 +01:00
Update SystemController.lua
All checks were successful
gitea-sync/antd-web-apps/pipeline/head This commit looks good
All checks were successful
gitea-sync/antd-web-apps/pipeline/head This commit looks good
This commit is contained in:
parent
0dba37d86e
commit
1f9c93efb4
@ -107,6 +107,9 @@ function SystemController:apigateway(...)
|
|||||||
--else
|
--else
|
||||||
-- std.json()
|
-- std.json()
|
||||||
end
|
end
|
||||||
|
-- preload modules
|
||||||
|
require("vfs")
|
||||||
|
-- TODO
|
||||||
local exec_with_user_priv = function(data)
|
local exec_with_user_priv = function(data)
|
||||||
local uid = ulib.uid(SESSION.user)
|
local uid = ulib.uid(SESSION.user)
|
||||||
if not ulib.setgid(uid.gid) or not ulib.setuid(uid.id) then
|
if not ulib.setgid(uid.gid) or not ulib.setuid(uid.id) then
|
||||||
|
Loading…
Reference in New Issue
Block a user