google apps script – How can I create a function in Appscript that allows me to control that a user modifies a cell once in spreadsheets?

I have the following query regarding Appscript:

How can you create a function in Appscript that allows you to control that a user only allows you to modify a cell once in a spreadsheet, but if authorization is granted, you can modify it again.

Thank you so much.