{% if user.is_authenticated %} {% block content %}{% endblock %} {% else %} ...Permission denied... {% endif %}