diff --git a/backend/open_webui/models/groups.py b/backend/open_webui/models/groups.py index cbd0bb2ff..f2f364c14 100644 --- a/backend/open_webui/models/groups.py +++ b/backend/open_webui/models/groups.py @@ -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: diff --git a/src/lib/components/workspace/common/AddAccessModal.svelte b/src/lib/components/workspace/common/AddAccessModal.svelte new file mode 100644 index 000000000..5180fef10 --- /dev/null +++ b/src/lib/components/workspace/common/AddAccessModal.svelte @@ -0,0 +1,69 @@ + + + +
+
+
+
+ {$i18n.t('Add Access')} +
+
+ +
+ +
+
+
{ + submitHandler(); + }} + > +
+ +
+ +
+ +
+
+
+
+
+