mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-29 07:52:50 +00:00
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