Update edit button to only appear if user has the capability to edit

Previously, any logged in user would see the button