'before post method for checking required relationship
:param args:
:param kwargs:
:param data:
:return:'

def before_post(self, args, kwargs, data):

    require_relationship(['event'], data)
    if (not has_access('is_coorganizer', event_id=data['event'])):
        raise ForbiddenException({'source': ''}, 'Co-organizer    access    is    required.')
