

def dispatch(self, request, *args, **kwargs):
    if (not self.has_permission()):
        return self.handle_no_permission()
    return super(PermissionRequiredMixin, self).dispatch(request, *args, **kwargs)

dataset/ETHPy150Open pinax/pinax-likes/pinax/likes/compat.py PermissionRequiredMixin.dispatch/original