This commit is contained in:
Timothy Jaeryang Baek
2026-02-08 22:37:13 -06:00
parent b147616080
commit 3ae44d11a5
2 changed files with 71 additions and 0 deletions
+2
View File
@@ -171,10 +171,12 @@ class GroupTable:
if share_value:
# Groups open to anyone: data is null, config.share is null, or share is true
# Use case-insensitive string comparison to handle variations like "True", "TRUE"
# Handle potential JSON boolean to string casting issues by checking for both string 'true' and boolean equivalence if possible,
anyone_can_share = or_(
Group.data.is_(None),
json_share_str.is_(None),
json_share_lower == "true",
json_share_lower == "1", # Handle SQLite boolean true
)
if member_id: