removing session as a parameter in canEdit, referencing session.get('id') in the method itself,adding session dependency to node.coffee