list_knowledge_application.sql 232 B

12345678910111213
  1. SELECT
  2. *
  3. FROM
  4. application
  5. WHERE
  6. user_id = %s
  7. UNION
  8. SELECT
  9. *
  10. FROM
  11. application
  12. WHERE
  13. "id"::text in (select target from workspace_user_resource_permission where auth_target_type = 'APPLICATION' and 'VIEW' = any (permission_list))