fix: specify application.id in permission query
This commit is contained in:
parent
cb60220cb8
commit
c598a1586e
@ -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))
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user