MCPcopy
hub / github.com/django/django / dispatch

Method dispatch

django/contrib/auth/mixins.py:71–74  ·  view source on GitHub ↗
(self, request, *args, **kwargs)

Source from the content-addressed store, hash-verified

69 """Verify that the current user is authenticated."""
70
71 def dispatch(self, request, *args, **kwargs):
72 if not request.user.is_authenticated:
73 return self.handle_no_permission()
74 return super().dispatch(request, *args, **kwargs)
75
76
77class PermissionRequiredMixin(AccessMixin):

Callers 2

dispatchMethod · 0.45
dispatchMethod · 0.45

Calls 1

handle_no_permissionMethod · 0.45

Tested by

no test coverage detected