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