refac: group share to settings

This commit is contained in:
Timothy Jaeryang Baek
2026-01-05 05:32:56 +04:00
parent 6b5643c786
commit ca514cd3ed
3 changed files with 102 additions and 37 deletions
+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)