mirror of
https://github.com/lxsang/antd-web-apps
synced 2024-11-19 18:08:21 +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
|
||||
-- std.json()
|
||||
end
|
||||
-- preload modules
|
||||
require("vfs")
|
||||
-- TODO
|
||||
local exec_with_user_priv = function(data)
|
||||
local uid = ulib.uid(SESSION.user)
|
||||
if not ulib.setgid(uid.gid) or not ulib.setuid(uid.id) then
|
||||
|
Loading…
Reference in New Issue
Block a user