mirror of
https://github.com/open-webui/open-webui.git
synced 2026-12-03 18:17:56 -05:00
refac
This commit is contained in:
1 parent
8f4f29d834
commit
d4c561d9f2
49 files changed
+1243
-466
No files matched your search
@@ -64,7 +64,7 @@ async def prompt_template(template: str, user: Optional[Any] = None) -> str:
|
||||
try:
|
||||
from open_webui.models.groups import Groups
|
||||
|
||||
user_groups = await Groups.get_groups_by_member_id(user_id)
|
||||
user_groups = await Groups.get_groups_by_member_id(user_id, include_inherited=True)
|
||||
groups = ', '.join(g.name for g in user_groups)
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
Reference in new issue
Block a user