diff --git a/src/postorius/auth/decorators.py b/src/postorius/auth/decorators.py index 35e9e22..bf50b43 100644 --- a/src/postorius/auth/decorators.py +++ b/src/postorius/auth/decorators.py @@ -73,15 +73,3 @@ raise PermissionDenied return fn(*args, **kwargs) return wrapper - - -def loggedin_or_403(fn): - """Make sure that the logged in user is not anonymous or otherwise raise - PermissionDenied. - Assumes the request object to be the first arg.""" - def wrapper(*args, **kwargs): - user = args[0].user - if not user.is_authenticated(): - raise PermissionDenied - return fn(*args, **kwargs) - return wrapper