Fixes decorator on view method

This commit is contained in:
Mouse Reeve 2022-11-16 18:23:26 -08:00
parent fcdb7f106e
commit a546ab578b

View file

@ -182,10 +182,7 @@ class InviteRequest(View):
@require_POST
@method_decorator(
permission_required("bookwyrm.create_invites", raise_exception=True),
name="dispatch",
)
@permission_required("bookwyrm.create_invites", raise_exception=True)
def ignore_invite_request(request):
"""hide an invite request"""
invite_request = get_object_or_404(