mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-10-31 22:19:00 +00:00
Fixes decorator on view method
This commit is contained in:
parent
fcdb7f106e
commit
a546ab578b
1 changed files with 1 additions and 4 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue