UnisKB/apps/knowledge/sql/list_knowledge_application.sql

13 lines
232 B
MySQL
Raw Permalink Normal View History

SELECT
*
FROM
application
WHERE
2025-10-14 08:31:30 +00:00
user_id = %s
UNION
SELECT
*
FROM
application
WHERE
2025-10-14 08:31:30 +00:00
"id"::text in (select target from workspace_user_resource_permission where auth_target_type = 'APPLICATION' and 'VIEW' = any (permission_list))