1
0
mirror of https://github.com/lxsang/antd-web-apps synced 2024-12-25 17:08:22 +01:00

Update SystemController.lua
All checks were successful
gitea-sync/antd-web-apps/pipeline/head This commit looks good

This commit is contained in:
Dany LE 2022-10-04 14:12:03 +02:00 committed by GitHub
parent 0dba37d86e
commit 1f9c93efb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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