You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Control Center left nav hidden for admins due to endpoint mismatch #1010
The Control Center left navigation section can be hidden for signed-in admins even when the ControlCenterAdmin and ControlCenterDashboardReader app-role settings are disabled.
In the full sidebar template, the on-page Control Center section is guarded by an unqualified endpoint name, but the route is registered under the frontend_control_center blueprint and is linked elsewhere as frontend_control_center.control_center.
Steps to Reproduce
Sign in as a user with the Admin role.
Ensure Admin Settings has Require ControlCenterAdmin App Role disabled.
Ensure Admin Settings has Allow ControlCenterDashboardReader App Role disabled.
Use left-nav layout and open /admin/control-center.
Expected Behavior
Regular admins should see the Control Center left-nav section and management tab links when ControlCenterAdmin enforcement is disabled.
Actual Behavior
The Control Center page can load for the admin, but the Control Center section in the left nav does not render because the endpoint comparison does not match the blueprint-qualified endpoint name.
Impact
Admins lose the left-nav navigation affordance for Control Center tabs even though route-level access permits regular Admin users in this configuration.
Notes
Investigation points:
application/single_app/templates/_sidebar_nav.html checks request.endpoint against control_center.
application/single_app/app.py registers the frontend Control Center route with blueprint name frontend_control_center.
Existing links use url_for(frontend_control_center.control_center).
functions_authentication.control_center_required(dashboard) and route_frontend_control_center.control_center both treat regular Admin as full access when require_member_of_control_center_admin is disabled.
Related follow-up: consider normalizing the two Control Center app-role setting values to booleans when loading settings, since existing stored non-boolean values could make Jinja conditions behave differently from the admin UI state.
git -c core.whitespace=blank-at-eol,blank-at-eof,space-before-tab,cr-at-eol diff --check passed with no output.
Notes:
VS Code diagnostics still show pre-existing inline-style warnings in _sidebar_nav.html; no new diagnostics were reported for the new test, fix doc, or config version change.
Activity
Bionic711 commentedon Jul 8, 2026
Implemented the Control Center left-nav fix for this issue.
Summary:
frontend_control_center.control_center.Adminfallback when ControlCenterAdmin enforcement is disabled.0.250.052.functional_tests/test_control_center_left_nav_endpoint.py.docs/explanation/fixes/CONTROL_CENTER_LEFT_NAV_ENDPOINT_FIX.md.v0.250.052.Validation:
c:/Repos/simplechatmsft/.venv/Scripts/python.exe functional_tests/test_control_center_left_nav_endpoint.pypassed: 3/3 checks.git -c core.whitespace=blank-at-eol,blank-at-eof,space-before-tab,cr-at-eol diff --checkpassed with no output.Notes:
_sidebar_nav.html; no new diagnostics were reported for the new test, fix doc, or config version change.