def get_restricted_data(self, full_data, user):
        if (self.can_retrieve(user) and
            (not full_data['is_hidden'] or
             user.has_perm('agenda.can_see_hidden_items'))):
            data = full_data
        else:
            data = None
        return data
Returns the distance between two ``XYPoint`` objects.
dataset/ETHPy150Open OpenSlides/OpenSlides/openslides/agenda/access_permissions.py/ItemAccessPermissions.get_restricted_data--crossover with--dataset/ETHPy150Open sontek/bulby/bulby/color.py/get_distance_between_two_points