commit 5470007: [WebUI] Fix privileged access for secure_ip

moisseev moiseev at mezonplus.ru
Mon Jun 6 20:49:03 UTC 2022


Author: moisseev
Date: 2022-06-06 18:01:53 +0300
URL: https://github.com/rspamd/rspamd/commit/54700079da48057ee78b0906be5abb692a7c1aa4 (refs/pull/4189/head)

[WebUI] Fix privileged access for secure_ip

---
 interface/js/app/rspamd.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/interface/js/app/rspamd.js b/interface/js/app/rspamd.js
index 66b1766c9..ecb034a86 100644
--- a/interface/js/app/rspamd.js
+++ b/interface/js/app/rspamd.js
@@ -583,7 +583,8 @@ function ($, visibility, NProgress, stickyTabs, tab_stat, tab_graph, tab_config,
         $.ajax({
             type: "GET",
             url: "stat",
-            success: function () {
+            success: function (data) {
+                sessionStorage.setItem("read_only", data.read_only);
                 displayUI();
             },
             error: function () {


More information about the Commits mailing list