From 6931d375704a2aafe0435acb3a4b48dfab32c22a Mon Sep 17 00:00:00 2001 From: thelastWallE <12502210+thelastWallE@users.noreply.github.com> Date: Fri, 5 Mar 2021 22:36:32 +0100 Subject: [PATCH] Rights on Macros changed --- octoprint_klipper/static/js/klipper.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/octoprint_klipper/static/js/klipper.js b/octoprint_klipper/static/js/klipper.js index 10ca040..c9b5213 100644 --- a/octoprint_klipper/static/js/klipper.js +++ b/octoprint_klipper/static/js/klipper.js @@ -66,7 +66,7 @@ $(function () { self.executeMacro = function (macro) { var paramObjRegex = /{(.*?)}/g; - if (!this.hasRight("MACRO")) return; + if (!self.hasRight("MACRO")) return; if (macro.macro().match(paramObjRegex) == null) { OctoPrint.control.sendGcode( @@ -150,7 +150,7 @@ $(function () { // OctoKlipper settings link self.openOctoKlipperSettings = function (profile_type) { - if (!this.hasRight("CONFIG")) return; + if (!self.hasRight("CONFIG")) return; $("a#navbar_show_settings").click(); $("li#settings_plugin_klipper_link a").click();