diff --git a/core/__pycache__/middleware.cpython-311.pyc b/core/__pycache__/middleware.cpython-311.pyc index 6acfa1c..5a02852 100644 Binary files a/core/__pycache__/middleware.cpython-311.pyc and b/core/__pycache__/middleware.cpython-311.pyc differ diff --git a/core/middleware.py b/core/middleware.py index d5ee3ba..5cff17f 100644 --- a/core/middleware.py +++ b/core/middleware.py @@ -27,12 +27,19 @@ class SubscriptionMiddleware: reverse('logout'), reverse('login'), reverse('register'), + reverse('verify_otp_registration'), + reverse('verify_otp_login'), reverse('subscription_expired'), + reverse('renew_subscription'), + reverse('thawani_success'), + reverse('thawani_cancel'), + reverse('thawani_webhook'), reverse('home'), '/admin/', '/static/', '/media/', '/i18n/', + '/receipt/', # Whitelist receipts so they can be viewed/printed ] # Check if the current path starts with any whitelisted path @@ -41,8 +48,7 @@ class SubscriptionMiddleware: if request.user.is_authenticated and not request.user.is_superuser: try: profile = request.user.profile - # If they are an admin role (not superuser but ADMIN role in profile), maybe don't suspend? - # Usually admins are exempted. + # Admins are exempted if profile.role == 'ADMIN': return self.get_response(request) diff --git a/core/templates/core/shipper_dashboard.html b/core/templates/core/shipper_dashboard.html index e0ddd95..75738f9 100644 --- a/core/templates/core/shipper_dashboard.html +++ b/core/templates/core/shipper_dashboard.html @@ -16,74 +16,35 @@ {% block content %}
{% trans "Manage your shipping offers and active shipments." %}
-{% trans "Manage your fleet and incoming shipping offers." %}
-