From 36c46d80f5a03dcb1d20f0a4a380e228846aa006 Mon Sep 17 00:00:00 2001 From: Bob Trahan Date: Tue, 11 Nov 2014 18:16:05 -0800 Subject: [PATCH] Phriction - fix "unknown policy" on document create Summary: when creating new documents the policy object wasn't being initialized properly. update the code to use the new handy initializeNewDocument method. Fixes T6527. Test Plan: viewed a doc at /w/asdsadsadsdas/ and saw the correct policy setting Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin, epriestley Maniphest Tasks: T6527 Differential Revision: https://secure.phabricator.com/D10837 --- .../phriction/controller/PhrictionDocumentController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/applications/phriction/controller/PhrictionDocumentController.php b/src/applications/phriction/controller/PhrictionDocumentController.php index 61ef1ef375..570cc8014b 100644 --- a/src/applications/phriction/controller/PhrictionDocumentController.php +++ b/src/applications/phriction/controller/PhrictionDocumentController.php @@ -38,7 +38,7 @@ final class PhrictionDocumentController if (!$document) { - $document = new PhrictionDocument(); + $document = PhrictionDocument::initializeNewDocument($user, $slug); $create_uri = '/phriction/edit/?slug='.$slug;