1
0
mirror of https://github.com/ae-utbm/sith.git synced 2025-03-27 07:37:09 +00:00

Remove SubscriberMixin

This commit is contained in:
imperosol 2025-01-13 15:57:01 +01:00
parent 551091f650
commit e500cf92ee

@ -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.