diff --git a/hbd/server/http.py b/hbd/server/http.py index dd50a34..ad805f7 100644 --- a/hbd/server/http.py +++ b/hbd/server/http.py @@ -1058,7 +1058,7 @@ async def start( "name": name, "type": cfg.get("type", ""), "owner": cfg.get("owner"), - "private": bool(cfg.get("private", False)), + "private": not config_access.is_global(cfg), } for name, cfg in visible_channels.items() if isinstance(cfg, dict) diff --git a/hbd/server/templates/profile.html b/hbd/server/templates/profile.html index 7a659bc..cd107e8 100644 --- a/hbd/server/templates/profile.html +++ b/hbd/server/templates/profile.html @@ -240,7 +240,6 @@ } .my-ch-name { font-weight: 600; font-size: .9em; color: #222; } .my-ch-type { padding: 2px 7px; border-radius: 8px; font-size: .72em; font-weight: 600; background: #e8eaf6; color: #3949ab; } - .my-ch-private { padding: 2px 7px; border-radius: 8px; font-size: .72em; font-weight: 600; background: #fce4ec; color: #c62828; } .my-ch-actions { margin-left: auto; display: flex; gap: 5px; } .btn-sm-edit { background: #888; color: #fff; border: none; border-radius: 4px; padding: 2px 8px; font-size: .78em; cursor: pointer; } .btn-sm-edit:hover { background: #666; } @@ -465,7 +464,7 @@ {% if current_user %}

My Channels

-

Channels you own. Public channels are available to all users; private channels are visible only to you.

+

Channels you own are private to you. Global channels are managed by administrators.

{% set my_channels = all_channels | selectattr('owner', 'equalto', current_user.username) | list %} {% for ch in my_channels %} @@ -473,7 +472,6 @@
{{ ch.name | e }} {{ ch.type | e }} - {% if ch.private %}private{% endif %} @@ -513,11 +511,6 @@
-
- -