1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-23 23:32:40 +01:00

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
This commit is contained in:
Bob Trahan 2014-11-11 18:16:05 -08:00
parent ac87ab275a
commit 36c46d80f5

View file

@ -38,7 +38,7 @@ final class PhrictionDocumentController
if (!$document) {
$document = new PhrictionDocument();
$document = PhrictionDocument::initializeNewDocument($user, $slug);
$create_uri = '/phriction/edit/?slug='.$slug;