'Fetch the current authenticated user\'s events'

@requires_auth
@api.doc('get_self_events')
@api.marshal_list_with(EVENT)
def get(self):

    user = getattr(g, 'user', None)
    attendee_role = Role.query.filter_by(name=ATTENDEE).first()
    events = DataGetter.get_user_events(user_id=user.id).filter((UsersEventsRoles.role_id != attendee_role.id)).all()
    return (events, 200)
