From cb0d05fe94d4d7567f7e25987aba1bf081e7b705 Mon Sep 17 00:00:00 2001 From: sharpshark <36805544+julblais@users.noreply.github.com> Date: Sun, 4 Aug 2024 11:11:18 -0400 Subject: [PATCH] Give access to the current file only Use the @OnlyCurrentDoc annotation to restrict access to the current file. --- google-apps-script.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/google-apps-script.js b/google-apps-script.js index cc1b097..7f57a78 100644 --- a/google-apps-script.js +++ b/google-apps-script.js @@ -7,6 +7,11 @@ // if you want to store your email server-side (hidden), uncomment the next line // var TO_ADDRESS = "example@email.net"; +/** + * Give access to the current spreadsheet only + * @OnlyCurrentDoc + */ + // spit out all the keys/values from the form in HTML for email // uses an array of keys if provided or the object to determine field order function formatMailBody(obj, order) {