1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-26 16:52:41 +01:00

Fix error on paste create via conduit

Summary: default policy to most liberal policy available for the installation

Test Plan: echo "sup man?" | arc paste   Was able to view resultant paste with no errors!

Reviewers: epriestley, vrana

Reviewed By: epriestley

CC: aran, Korvin

Maniphest Tasks: T1815

Differential Revision: https://secure.phabricator.com/D3548
This commit is contained in:
Bob Trahan 2012-09-24 11:05:58 -07:00
parent 0248c74914
commit cad1eed24a

View file

@ -70,6 +70,7 @@ final class ConduitAPI_paste_create_Method extends ConduitAPI_paste_Method {
$paste->setLanguage($language);
$paste->setFilePHID($paste_file->getPHID());
$paste->setAuthorPHID($user->getPHID());
$paste->setViewPolicy(PhabricatorPolicies::POLICY_USER);
$paste->save();
$paste->attachContent($content);