Toggle Track Protect
Toggle the protected state of the selected tracks.
Protect tracks in Logic Pro — Apple Support
You can protect a track to prevent accidental changes. While a track is protected, you can’t record on the track, edit regions on the track, or create new regions on the track. If you want to edit the track, you can unprotect it, make the changes, and then protect the track again.