Skip to content

Commit c598a15

Browse files
committed
fix: specify application.id in permission query
1 parent cb60220 commit c598a15

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/application/sql/list_application_user.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ from (select application."id"::text,
1212
application."create_time",
1313
application."update_time"
1414
from application left join "user" on user_id = "user".id
15-
where id in (select target
15+
where application."id" in (select target
1616
from workspace_user_resource_permission
1717
where auth_target_type = 'APPLICATION'
1818
and 'VIEW' = any (permission_list))

apps/application/sql/list_application_user_ee.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ from (select application."id"::text,
1212
application."create_time",
1313
application."update_time"
1414
from application left join "user" on user_id = "user".id
15-
where id in (select target
15+
where application."id" in (select target
1616
from workspace_user_resource_permission
1717
where auth_target_type = 'APPLICATION'
1818
and case

0 commit comments

Comments
 (0)