1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-14 19:02:41 +01:00
phorge-phorge/src/applications/phriction
epriestley b799f5671b Implement PhrictionDocumentQuery
Summary:
Companion for D5284. Move all the query logic to a policy-aware query class. In particular:

  - Currently, anyone can view and edit a project's wiki documents. For callsites using this query class, you must be able to view or edit the project to view or edit its documents.
  - There's some very sketchy logic with the content/document joins. This cleans that up.
  - This cleans up loading projects by moving it inside the query. We need to do this anyway to perform policy checks.

Test Plan: Viewed active/all/updated. Set page size to 2, verified pager works.

Reviewers: AnhNhan, chad

Reviewed By: AnhNhan

CC: aran

Differential Revision: https://secure.phabricator.com/D5285
2013-03-08 07:12:24 -08:00
..
application Phriction Documents can be moved 2013-03-06 13:12:04 -08:00
conduit Move Conduit methods inside applications 2012-12-21 12:21:59 -08:00
config Phriction setting. 2013-01-15 06:31:54 -08:00
constants Phriction Documents can be moved 2013-03-06 13:12:04 -08:00
controller Implement PhrictionDocumentQuery 2013-03-08 07:12:24 -08:00
editor Phriction Documents can be moved 2013-03-06 13:12:04 -08:00
query Implement PhrictionDocumentQuery 2013-03-08 07:12:24 -08:00
remarkup Pre-prepare for hovercards 2013-02-26 14:57:41 -08:00
search Mark deleted Phriction pages as closed. 2012-12-26 17:10:38 -08:00
storage Implement PhrictionDocumentQuery 2013-03-08 07:12:24 -08:00