@simple_decorator
def check_login_required(view_func):
    def _check(*args, **kwargs):
        siteconfig = SiteConfiguration.objects.get_current()

        if siteconfig.get("auth_require_sitewide_login"):
            return login_required(view_func)(*args, **kwargs)
        else:
            return view_func(*args, **kwargs)

    return _check
To get a historical data of events amount - run **GET** against */api/events/count/history/*.
dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/accounts/decorators.py/check_login_required--crossover with--dataset/ETHPy150Open opennode/nodeconductor/nodeconductor/logging/views.py/EventViewSet.count_history