fix: resource permission auth (#3243)

This commit is contained in:
shaohuzhang1 2025-06-12 17:10:33 +08:00 committed by GitHub
parent 399e00415c
commit 14ae7864aa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6,7 +6,8 @@ FROM (SELECT "id",
'KNOWLEDGE' AS "auth_target_type",
user_id,
workspace_id,
"type"::varchar AS "icon"
"type"::varchar AS "icon",
folder_id
FROM knowledge
${knowledge_query_set}
UNION
@ -15,7 +16,8 @@ FROM (SELECT "id",
'APPLICATION' AS "auth_target_type",
user_id,
workspace_id,
icon
icon,
folder_id
FROM application
${application_query_set}
) app_or_knowledge