From 18f0da77d4c07e349bde1a2de2b621909d61fe5b Mon Sep 17 00:00:00 2001 From: Massimo Melina Date: Sat, 13 Jun 2020 20:34:19 +0200 Subject: [PATCH] fix: (recent) broken ajax() calls --- default.tpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/default.tpl b/default.tpl index e9f2a55..ba13135 100644 --- a/default.tpl +++ b/default.tpl @@ -618,7 +618,8 @@ function ajax(method, data, cb) { data = {}; data.token = HFS.sid; // avoid CSRF attacks showLoading() - return $.post("/~ajax."+method, data).then(function(){ + // calling this section 'under' the current folder will affect permissions commands like {.get|can delete.} + return $.post("?mode=section&id=ajax."+method, data).then(function(){ if (cb) showLoading(false) ;(cb||getStdAjaxCB()).apply(this,arguments)