1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-13 18:32:41 +01:00
phorge-phorge/src/applications/phriction/controller
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
..
PhrictionController.php 'Create Document' pre-fills with current slug 2013-03-07 08:12:00 -08:00
PhrictionDeleteController.php prevents users from deleting already deleted/moved phriction documents 2013-03-04 08:50:43 -08:00
PhrictionDiffController.php Fix Maniphest and Config transaction diff rendering 2013-03-03 11:37:45 -08:00
PhrictionDocumentController.php Fixed Phriction status displays when browsing history 2013-03-07 08:33:38 -08:00
PhrictionDocumentPreviewController.php Delete license headers from files 2012-11-05 11:16:51 -08:00
PhrictionEditController.php Restore merge of phutil_tag. 2013-02-13 14:51:18 -08:00
PhrictionHistoryController.php Restore merge of phutil_tag. 2013-02-13 14:51:18 -08:00
PhrictionListController.php Implement PhrictionDocumentQuery 2013-03-08 07:12:24 -08:00
PhrictionMoveController.php Simplified Phriction Move form 2013-03-07 08:20:55 -08:00
PhrictionNewController.php 'Create Document' pre-fills with current slug 2013-03-07 08:12:00 -08:00