def dispatch(self, request, *args, **kwargs):
        """ Dispatches an incoming request. """
        self.request = request
        self.args = args
        self.kwargs = kwargs
        response = self.check_permissions(request)
        if response:
            return response
        return super().dispatch(request, *args, **kwargs)
Dispatches an incoming request.