Skip to content

Commit

Permalink
Fixed approval system
Browse files Browse the repository at this point in the history
  • Loading branch information
will1742 committed Oct 14, 2021
1 parent 4c72493 commit 70d8312
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Haas_Lathes_BIDC/Bechtel ST-20.cps
Original file line number Diff line number Diff line change
Expand Up @@ -2179,6 +2179,10 @@ function onSection() {
writeRetract(currentSection, true); // retract in Z also
}

if (hasParameter("notes") && getParameter("notes").toUpperCase().indexOf("APPROVED") <= -1) {
throw "Operation \"" + getParameter("operation-comment") + "\" not approved. See a Peer Mentor."
}

if (staticProperties.showNotes && hasParameter("notes")) {
var notes = getParameter("notes");
if (notes) {
Expand Down
5 changes: 5 additions & 0 deletions Haas_Lathes_BIDC/Bechtel ST-20Y.cps
Original file line number Diff line number Diff line change
Expand Up @@ -2263,6 +2263,11 @@ function onSection() {
writeRetract(currentSection, true); // retract in Z also
}

if (hasParameter("notes") && getParameter("notes").toUpperCase().indexOf("APPROVED") <= -1) {
throw "Operation \"" + getParameter("operation-comment") + "\" not approved. See a Peer Mentor."
}


if (staticProperties.showNotes && hasParameter("notes")) {
var notes = getParameter("notes");
if (notes) {
Expand Down

0 comments on commit 70d8312

Please sign in to comment.