Save and update permissions