Loading case detail
A document lookup no longer scopes the row to the caller's organization.
--- a/sql/documents.sql +++ b/sql/documents.sql @@ -1,4 +1,3 @@ SELECT id, title, body FROM documents -WHERE id = :document_id - AND organization_id = :organization_id; +WHERE id = :document_id;
--- a/sql/documents.sql +++ b/sql/documents.sql @@ -1,4 +1,4 @@ SELECT id, title, body FROM documents -WHERE id = :document_id; - +WHERE id = :document_id + AND organization_id = :organization_id;