Hi guys!
I'm trying to limit access to certain functions in my publicly available Google Sheets add-on.
I read this in the documentation concerning getEmail():
"the user's email address is not available in any context that allows a script to run without that user's authorization, like a simple onOpen(e) or onEdit(e) trigger, a custom function in Google Sheets"
Which, to me, means that I should not be able to see the user email when using a custom function or simple triggers.
HOWEVER, when I run a simple test like this:
// Do something;
}
It works without throwing any error.
My question is: Is this behaviour to be expected or will an error be thrown under certain circumstances I have not yet considered?