fix: specify application.id in permission query

This commit is contained in:
CaptainB 2025-06-21 12:48:30 +08:00
parent cb60220cb8
commit c598a1586e
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ from (select application."id"::text,
application."create_time",
application."update_time"
from application left join "user" on user_id = "user".id
where id in (select target
where application."id" in (select target
from workspace_user_resource_permission
where auth_target_type = 'APPLICATION'
and 'VIEW' = any (permission_list))

View File

@ -12,7 +12,7 @@ from (select application."id"::text,
application."create_time",
application."update_time"
from application left join "user" on user_id = "user".id
where id in (select target
where application."id" in (select target
from workspace_user_resource_permission
where auth_target_type = 'APPLICATION'
and case