From cad1eed24a9f54787655a922d59851ad82261ffc Mon Sep 17 00:00:00 2001 From: Bob Trahan Date: Mon, 24 Sep 2012 11:05:58 -0700 Subject: [PATCH] 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 --- .../paste/conduit/ConduitAPI_paste_create_Method.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/applications/paste/conduit/ConduitAPI_paste_create_Method.php b/src/applications/paste/conduit/ConduitAPI_paste_create_Method.php index 4a4deca593..d4525ab33b 100644 --- a/src/applications/paste/conduit/ConduitAPI_paste_create_Method.php +++ b/src/applications/paste/conduit/ConduitAPI_paste_create_Method.php @@ -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);