I have a "hide sheets" function. I've tried using it as an onOpen function, and also with a On Open trigger.
It works fine if an Editor opens the GS.
But if a Viewer opens the GS, it doesn't work at all. If it's an On Open trigger, I get an error email that "Authorization is required to perform that action." If it's called as an onOpen function, it just doesn't work, but also doesn't generate any errors.
Is there a way to make this work for Viewers?