from django.shortcuts import redirect
from django.urls import reverse


class ActivationMiddleware:
    """
    Replaced by CompanyMiddleware which handles company resolution AND activation.
    This class is kept as a no-op stub so existing MIDDLEWARE config doesn't break.
    All activation checks are now done inside CompanyMiddleware.
    """
    def __init__(self, get_response):
        self.get_response = get_response

    def __call__(self, request):
        return self.get_response(request)
