Button to unlock/toggle table edit permission

I would like certain users to be able to edit a table if required but the default view to be view only. An ‘edit table’ button would be best.