Configure weblate's login_required middleware