'Return True if the image can be shared to others in this context.'

def is_image_sharable(self, context, image):

    if context.is_admin:
        return True
    if (context.owner is None):
        return False
    if (context.owner == image['owner']):
        return True
    members = self.db_api.image_member_find(context, image_id=image['id'], member=context.owner)
    if members:
        return members[0]['can_share']
    return False
