Protecting tag scripts

Is there a way to password protect/ only allow certain roles to change scripts written on tags? I have tried only allowing certain roles to read/write to a tag, but this only applies to the value, the user can still change the script on the tag. Anyone know if this is possible?

You can restrict tag edits by editing the Tag Provider from the gateway.

From the manual:

In addition to setting up security on individual Tags, Tag Provider Security allows you to limit the ability to modify Tags to only those users with specified roles. This can be extremely useful if you want to let many people use Tags in their projects, but not allow them to edit your Tag structure or Delete Tags. Tag Provider security is Role-based, and each Tag Provider has it’s own role requirements. When using this security, we recommend you create a role specifically for Tag edits (ie: TagEditor or defaultTagEditor).