def is_allowed_to_submit(request):
    return not settings.REQUIRE_LOGIN or request.user.is_authenticated()
Return true if user is allowed to submit URLs
dataset/ETHPy150Open nileshk/url-shortener/shortener/views.py/is_allowed_to_submit