Skip to content

Commit 36c46d8

Browse files
committedNov 12, 2014
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
1 parent ac87ab2 commit 36c46d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/applications/phriction/controller/PhrictionDocumentController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function processRequest() {
3838

3939
if (!$document) {
4040

41-
$document = new PhrictionDocument();
41+
$document = PhrictionDocument::initializeNewDocument($user, $slug);
4242

4343
$create_uri = '/phriction/edit/?slug='.$slug;
4444

0 commit comments

Comments
 (0)
Failed to load comments.