mirror of
https://github.com/ae-utbm/sith.git
synced 2025-01-20 22:11:14 +00:00
Remove SubscriberMixin
This commit is contained in:
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.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user