088a90ee1bec55651a69e59485548a30bbea4aeb — Jochen Kupperschmidt 2 months ago a17316e
Fix site ID check in admin mode
1 files changed, 4 insertions(+), 2 deletions(-)

M byceps/blueprints/core/views.py
M byceps/blueprints/core/views.py => byceps/blueprints/core/views.py +4 -2
@@ 46,10 46,12 @@ def inject_template_variables():
def url_for_site_file(filename, **kwargs) -> Optional[str]:
    """Render URL for a static file local to the current site."""
    if g.site_id is None:
    site_id = getattr(g, 'site_id', None)

    if site_id is None:
        return None

    return url_for('site_file', site_id=g.site_id, filename=filename, **kwargs)
    return url_for('site_file', site_id=site_id, filename=filename, **kwargs)