mirror of
https://github.com/lxsang/antd-web-apps
synced 2024-11-20 02:18:20 +01:00
fix system controller
This commit is contained in:
parent
cecbb230d1
commit
41e32d2730
@ -1,4 +1,4 @@
|
||||
// Generated by CoffeeScript 2.4.1
|
||||
// Generated by CoffeeScript 2.5.1
|
||||
(function() {
|
||||
var APIManager, BaseObject, MarkOn, WebVNC, require;
|
||||
|
||||
|
@ -101,8 +101,8 @@ function SystemController:apigateway(...)
|
||||
-- override the global echo command
|
||||
echo = std.ws.swrite
|
||||
use_ws = true
|
||||
else
|
||||
std.json()
|
||||
--else
|
||||
-- std.json()
|
||||
end
|
||||
local exec_with_user_priv = function(data)
|
||||
local uid = ulib.uid(SESSION.user)
|
||||
|
@ -61,7 +61,7 @@ end
|
||||
|
||||
vfs.mkdir = function(path)
|
||||
local file = std.basename(path)
|
||||
local folder = string.gsub(path, utils.escape_pattern(file),"")
|
||||
local folder = string.gsub(path, utils.escape_pattern(file).."$","")
|
||||
local r,m = vfs.checkperm(folder,"write")
|
||||
|
||||
if r then
|
||||
|
Loading…
Reference in New Issue
Block a user