Allow owners to edit published content

It was actually used twice, which is why I put session.get('id') in a variable. It was used once for 'authenticated' and once as a parameter in '@model.canEdit()'.  I have removed the variable.