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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user