How to lock a single cell after that cell is edited.
Important note:
* Neither the owner nor the user triggering the script lose permissions with this script
Sheet (to copy)
https://docs.google.com/spreadsheets/d/1iH1-HhflzF5fL7aiyqYQwFdDHBwUQNessUk8jTi3Rpw/edit#gid=0
Script:
function onEdit(e){
let protection = e.range.protect();
protection.removeEditors(protection.getEditors());
if (protection.canDomainEdit()) {
protection.setDomainEdit(false);
}
}