One of my employees is getting this error message ...
# administration
e
One of my employees is getting this error message when trying to add items to a sales order after it has been saved YOUR_SEARCH_CONTAINS_A_REFERENCE_TO_JOIN_FOR_WHICH_YOU_DO_NOT_HAVE_A_PERMISSION Your search contains a reference to join for which you do not have a permission: Custom
For clarification, I think this could be an issue tied into the rebate module we have running
s
Yeah this is another script running on save that is failing, that script is not set to run as admin and performing a search on something that user cannot access.
e
I think I will have to edit the script
s
You can just tell it to run as admin and it will fix the problem.
e
I can't give this employee admin access, I wound up disabling the script as we don't need it at the moment. Short term fix I guess 😅
s
You don't give the employee admin access, you give the script that is running admin access. There is an
EXECUTE AS ROLE
option on the deployment of the script.
👍🏻 3
But if you don't need it, certainly just turn it off.
r
The Execute as Role is not an available option is the script is a client side script, FYI.