Update edit button to only appear if user can edit

Previously displayed button to any user logged in