def _get_deal(self, deal_id, force_json=False):
        if force_json:
            deal_url = 'deals/%s%s' % (deal_id, '.json')
        else:
            deal_url = 'deals/%s%s' % (deal_id, self.format)

        url = self.base_url + deal_url
        req = urllib2.Request(url, headers=self.header)
        response = urllib2.urlopen(req)
        data = response.read()

        return data
Decorator factory for checking permissions. Checks that user is logged
dataset/ETHPy150Open npinger/base-crm-api-client/base_client.py/BaseAPIService._get_deal--crossover with--dataset/ETHPy150Open CenterForOpenScience/osf.io/website/project/decorators.py/must_have_permission