Hey guys and gals, I was wondering if anyone could...
# general
d
Hey guys and gals, I was wondering if anyone could help me this very weird issue I'm running into. I wrote a client script that is being called in a suitlet via
setScript
. The client script is searching and pulling different information from different records. There's this one record I'm getting permissions issues on, I'm not sure why - the suitelet is being run as an admin. I assume since the suitelet is being run in that role, permissions would cascade to the client script? I might be wrong. Any suggestions of a fix? Preferably one that doesn't require modification of permissions the record. Thank you for reading my question.
b
client scripts run using the role of the user running the script
👍 1
w
The suitelet is run on the serverside where it can run as admin. The client script can not, as it is running in the browser.
👍 1
You could have a backend-suitelet that the client script is calling. Then the backend-suitelet accesses the stuff that the user doesn't have access to and gives it to the client script.
😀 1
👍 1
d
hey @battk. Thanks for clearing that up for me. Would you happen to have any suggestions on a fix?
hey @Watz . Thank you for the awesome idea. I'll definitely try it out!
b
the suitelet is the primary way to work around permission
😁 1
d
@battk @Watz thank you both for the suggestions and the clarification. I was successful in my implementation 🙂