Rights on Macros changed

This commit is contained in:
thelastWallE 2021-03-05 22:36:32 +01:00
parent fc8d74e898
commit 6931d37570
1 changed files with 2 additions and 2 deletions

View File

@ -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();