Permission checking decorators raise internal server error if the user is anonymous
Some views raise an HTTP 500 error if the user is currently not signed in. Example:
@permission_required(
"alsijil.view_person_overview",
fn=objectgetter_optional(
Person.objects.prefetch_related("member_of__owners"), "request.user.person", True
),
)
def overview_person(request: HttpRequest, id_: Optional[int] = None) -> HttpResponse: