dev server uses admin login too: localhost shows the public view

Drop open_access; run() prints a one-off PHYSCOM_ADMIN_TOKEN when none is set.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2026-09-25 17:27:55 -05:00
parent 8171fc023e
commit af401d6bc2
6 changed files with 25 additions and 26 deletions

View File

@@ -21,10 +21,8 @@
{% if is_admin() %}
<li><a href="{{ url_for('pipeline.pipeline_form') }}">Pipeline</a></li>
<li><a href="{{ url_for('admin.admin_index') }}">Admin</a></li>
{% if not config.OPEN_ACCESS %}
<li><form method="post" action="{{ url_for('logout') }}" class="nav-logout"><button type="submit">Log out</button></form></li>
{% endif %}
{% endif %}
</ul>
</nav>