mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 18:32:48 +00:00
13 lines
232 B
SQL
13 lines
232 B
SQL
SELECT
|
|
*
|
|
FROM
|
|
application
|
|
WHERE
|
|
user_id = %s
|
|
UNION
|
|
SELECT
|
|
*
|
|
FROM
|
|
application
|
|
WHERE
|
|
"id"::text in (select target from workspace_user_resource_permission where auth_target_type = 'APPLICATION' and 'VIEW' = any (permission_list)) |