mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-06-13 18:59:24 +00:00
d620bd7350
fixes #3104
9 lines
273 B
Python
9 lines
273 B
Python
"""custom 403 handler to enable context processors"""
|
|
from django.template.response import TemplateResponse
|
|
|
|
|
|
def permission_required(request, exception): # pylint: disable=unused-argument
|
|
"""permission denied page"""
|
|
|
|
return TemplateResponse(request, "403.html")
|