Custom field not editable by the user

A quick fix would be to insert some custom javascript in WP Admin. You can target the field by its ID, then just add the disabled attribute to the input. The user will be able to see it, but not change it.

Obviously you’ll have to use an if statement to allow you to edit it as an administrator but disable it for the user.