Skip to content
Snippets Groups Projects
Commit aebb26e8 authored by Simon Künzel's avatar Simon Künzel
Browse files

Add `is_enabled` field to live config announcements

parent 9119a77e
Branches
Tags
1 merge request!4Rollout to production
Pipeline #6057 passed
......@@ -41,6 +41,9 @@ class LiveConfig:
if visibility not in ["only_main_page", "all_pages", "all_pages_and_embed"]:
unsafe_announcement.get("visibility").raise_error("Unknown visibility")
text = unsafe_announcement.get_string("text", TYPE_STRING_LONG.get_max_string_length())
if not unsafe_announcement.get_bool("is_enabled", True):
continue
static_announcements.append({
"type": type,
"visibility": visibility,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment