I have a js file that is part of the suiteapp im b...
# sdf
m
I have a js file that is part of the suiteapp im building, when I try to load it using file.load({id: '/SuiteApps/....../file.js'}), I get insufficient permissions to access the file, on the file itself I do not see any permissions, what is the issue?
s
Might need to add a NModuleScope to the top of the file?
m
it is not a script file, it is a pure javascript file used by a custom ui
It seems that if I remove the lock protection on those files, they can be loaded. Which is not what I would like to do
s
Oh yeah you cannot access locked js files
m
I was hoping that the same suiteapp where the files reside should be able to access its own files even if locked
s
I've had the same problem and just unlocked the shared lib files
definitely not ideal, maybe someone has a better approach
m
Yeah, most of the "ip" is in those files so locking them would have been ideal