def url_is_from_spider(url, spider):
    return url_is_from_any_domain(url,
        [spider.name] + list(getattr(spider, 'allowed_domains', [])))
Checks if the user has the correct permission to Hijack another user.
dataset/ETHPy150Open scrapy/scrapy/scrapy/utils/url.py/url_is_from_spider--crossover with--dataset/ETHPy150Open arteria/django-hijack/hijack/helpers.py/is_authorized_default