From e500cf92ee72f31cb40d2f8e52a1e8fd87eeae77 Mon Sep 17 00:00:00 2001 From: imperosol Date: Mon, 13 Jan 2025 15:57:01 +0100 Subject: [PATCH] Remove `SubscriberMixin` --- core/auth/mixins.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/core/auth/mixins.py b/core/auth/mixins.py index 794021d5..422d7bce 100644 --- a/core/auth/mixins.py +++ b/core/auth/mixins.py @@ -208,13 +208,6 @@ class FormerSubscriberMixin(AccessMixin): return super().dispatch(request, *args, **kwargs) -class SubscriberMixin(AccessMixin): - def dispatch(self, request, *args, **kwargs): - if not request.user.is_subscribed: - return self.handle_no_permission() - return super().dispatch(request, *args, **kwargs) - - class PermissionOrAuthorRequiredMixin(PermissionRequiredMixin): """Require that the user has the required perm or is the object author.