Skip to content

Commit 26808a6

Browse files
committed
fix: resource permission auth
1 parent e5e9939 commit 26808a6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

apps/system_manage/sql/get_user_resource_permission.sql

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ FROM (SELECT "id",
66
'KNOWLEDGE' AS "auth_target_type",
77
user_id,
88
workspace_id,
9-
"type"::varchar AS "icon"
9+
"type"::varchar AS "icon",
10+
folder_id
1011
FROM knowledge
1112
${knowledge_query_set}
1213
UNION
@@ -15,7 +16,8 @@ FROM (SELECT "id",
1516
'APPLICATION' AS "auth_target_type",
1617
user_id,
1718
workspace_id,
18-
icon
19+
icon,
20+
folder_id
1921
FROM application
2022
${application_query_set}
2123
) app_or_knowledge

0 commit comments

Comments
 (0)