We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.
Thanks! The function worked to prevent most editing. The products can still be edited using the bulk update functionality, but I was able to work around that. Thanks again for your help.