This is a follow-on to question here.
Review in linked post: menu click function in a library ('rm' in this case) works.
ui.createMenu('Test').addItem('Test-Lib', 'rm.test');
However, going forward I had found that this ONLY works iff the user has EDIT access to the (rm) library. I have tested this for "links" "readonly" and "readonly public access". Only works for EDIT access.
The background information is that I've found NO information regarding this from Google/Official sources.
Initial finding was good (click function in library) in that it saved me a lot of coding. But now I'm back to square one, as I cannot give edit access to the library.
Anyone have any experience on this? Ideas? Workarounds? Thoughts?
EDIT;
Big thanks to @tehhowch comment below with his link. Solved it, but still a little bit tedious solution. To summarize:
- Read-Only access means that user does not have access to the development version, but only the linked version - so need to make sure that linked version has all the requirements met.
- Republishing the lib to the same version did not work.
- Republishing the lib to a new version and updating the client spreadsheet to the new version did work.
Of course, this is a bit tedious going into all client spreadsheets that use the lib, but at least now i can deploy with read-only access to my libs :)