Updated legacy functions to hide edit link in old templates if user cannot edit.