]> source.dussan.org Git - rspamd.git/commitdiff
[WebUI] Fix privileged access for secure_ip 4189/head
authormoisseev <moiseev@mezonplus.ru>
Mon, 6 Jun 2022 15:01:53 +0000 (18:01 +0300)
committermoisseev <moiseev@mezonplus.ru>
Mon, 6 Jun 2022 15:01:53 +0000 (18:01 +0300)
interface/js/app/rspamd.js

index 66b1766c92a1c750346cd4154327dc60e4f8c34b..ecb034a863420d3e6605f5000d9ff411592bf641 100644 (file)
@@ -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 () {