mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: application knowledge list (#3368)
This commit is contained in:
parent
e7c0d8eaf1
commit
e98ecf4c2f
|
|
@ -322,7 +322,7 @@ class Query(serializers.Serializer):
|
|||
return {'folder_query_set': folder_query_set,
|
||||
'application_query_set': application_query_set,
|
||||
'workspace_user_resource_permission_query_set': QuerySet(WorkspaceUserResourcePermission).filter(
|
||||
auth_target_type="KNOWLEDGE",
|
||||
auth_target_type="APPLICATION",
|
||||
workspace_id=workspace_id,
|
||||
user_id=user_id)} if (
|
||||
not workspace_manage and is_x_pack_ee) else {
|
||||
|
|
|
|||
|
|
@ -160,7 +160,7 @@ class KnowledgeSerializer(serializers.Serializer):
|
|||
if not workspace_manage and is_x_pack_ee:
|
||||
query_set_dict['workspace_user_resource_permission_query_set'] = QuerySet(
|
||||
WorkspaceUserResourcePermission).filter(
|
||||
auth_target_type="",
|
||||
auth_target_type="KNOWLEDGE",
|
||||
workspace_id=workspace_id,
|
||||
user_id=self.data.get("user_id"))
|
||||
return query_set_dict
|
||||
|
|
|
|||
Loading…
Reference in New Issue