fix: Header shows Admin when logged in (v2.3.2)
Build Container / build (push) Successful in 9s

Public pages never checked the session, so they always showed Log in.
Set g.me in before_request when a session cookie is present.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
PhilandClaude Opus 5.5 committed 2026-10-31 18:57:12 -06:00
1 parent 2616ef5060
commit c51cf726b0
4 files changed
+37 -2

No files matched your search

+1 -1
View File
@@ -40,7 +40,7 @@
<a href="/">Home</a>
<a href="{{ url_for('public.feed') }}">RSS</a>
{% if g.me %}
<a href="{{ url_for('admin.dashboard') }}">Dashboard</a>
<a href="{{ url_for('admin.dashboard') }}">Admin</a>
{% else %}
<a href="{{ url_for('auth.login_form') }}">Log in</a>
{% endif %}