def dispatch(self, request, *args, **kwargs):
        has_permission = self.check_permissions(request)

        if not has_permission:
            return self.handle_no_permission(request)

        return super(PermissionRequiredMixin, self).dispatch(
            request, *args, **kwargs)
Check to see if the user in the request has the required
dataset/ETHPy150Open brack3t/django-braces/braces/views/_access.py/PermissionRequiredMixin.dispatch