refac: group share to settings

This commit is contained in:
Timothy Jaeryang Baek committed 2026-01-05 05:32:56 +04:00
1 parent 6b5643c786
commit ca514cd3ed
3 files changed
+102 -37

No files matched your search

+4 -3
View File
@@ -39,11 +39,12 @@ async def get_groups(
):
filter = {}
# Admins can share to all groups regardless of share setting
if user.role != "admin":
filter["member_id"] = user.id
if share is not None:
filter["share"] = share
if share is not None:
filter["share"] = share
groups = Groups.get_groups(filter=filter, db=db)