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:
1 parent
2616ef5060
commit
c51cf726b0
4 files changed
+37
-2
No files matched your search
+1
-1
@@ -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 %}
|
||||
|
||||
Reference in new issue
Block a user