typo in executeMacro for permissions

This commit is contained in:
thelastWallE 2021-02-13 15:48:23 +01:00
parent 782b9aa91b
commit fc8d74e898
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ $(function () {
self.executeMacro = function (macro) { self.executeMacro = function (macro) {
var paramObjRegex = /{(.*?)}/g; var paramObjRegex = /{(.*?)}/g;
if (!this.hasRight("MACROS")) return; if (!this.hasRight("MACRO")) return;
if (macro.macro().match(paramObjRegex) == null) { if (macro.macro().match(paramObjRegex) == null) {
OctoPrint.control.sendGcode( OctoPrint.control.sendGcode(