You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/application/sql/list_application_user_ee.sql
+7-5Lines changed: 7 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -12,15 +12,17 @@ from (select application."id"::text,
12
12
application."create_time",
13
13
application."update_time"
14
14
from application left join"user"on user_id ="user".id
15
-
where application."id"in (select target
15
+
where"application".idin (select target
16
16
from workspace_user_resource_permission
17
17
where auth_target_type ='APPLICATION'
18
18
and case
19
19
when auth_type ='ROLE' then
20
-
'APPLICATION_READ'in (select permission_id
21
-
from role_permission
22
-
where role_id in (select role_id
23
-
from user_role_relation))
20
+
'APPLICATION:READ'in (select (case when user_role_relation.role_id= any (array ['USER']) THEN 'APPLICATION:READ' else role_permission.permission_id END)
0 commit comments